From 44db227af72a326b43961b60f943e50cee49ef50 Mon Sep 17 00:00:00 2001 From: Mathis Ribet Date: Thu, 15 Aug 2024 00:30:54 +0200 Subject: [PATCH] Remove useless type hints --- src/environs/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(