Skip to content

Commit

Permalink
Remove useless type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Ribet committed Aug 14, 2024
1 parent e590932 commit 44db227
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/environs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -226,7 +226,7 @@ def method(
return value

method.__name__ = method_name
return method # type: ignore[return-value]
return method


def _make_subcast_field(
Expand Down

0 comments on commit 44db227

Please sign in to comment.