diff --git a/src/environs/__init__.py b/src/environs/__init__.py index 22a55a9..8beec25 100644 --- a/src/environs/__init__.py +++ b/src/environs/__init__.py @@ -106,7 +106,7 @@ def _field2method( *, preprocess: typing.Optional[typing.Callable] = None, preprocess_kwarg_names: typing.Sequence[str] = tuple(), -) -> _ParserMethod: +): def method( self: "Env", name: str, @@ -178,10 +178,10 @@ def method( return value method.__name__ = method_name - return method # type: ignore[return-value] + return method -def _func2method(func: typing.Callable, method_name: str) -> _ParserMethod: +def _func2method(func: typing.Callable, method_name: str): def method( self: "Env", name: str, @@ -226,7 +226,7 @@ def method( return value method.__name__ = method_name - return method # type: ignore[return-value] + return method def _make_subcast_field(