confighelper: type checking fix
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
9c6048a759
commit
c5bf6e77a7
|
@ -123,7 +123,7 @@ class ConfigHelper:
|
|||
)
|
||||
|
||||
def _get_option(self,
|
||||
func: Callable[..., _T],
|
||||
func: Callable[..., Any],
|
||||
option: str,
|
||||
default: Union[Sentinel, _T],
|
||||
above: Optional[Union[int, float]] = None,
|
||||
|
@ -131,7 +131,7 @@ class ConfigHelper:
|
|||
minval: Optional[Union[int, float]] = None,
|
||||
maxval: Optional[Union[int, float]] = None,
|
||||
deprecate: bool = False
|
||||
) -> _T:
|
||||
) -> Any:
|
||||
section = self.section
|
||||
warn_fallback = False
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue