Skip to content

Commit

Permalink
Further improving typeguard_ignore() signature to be compatible with …
Browse files Browse the repository at this point in the history
…typing.no_type_check()
  • Loading branch information
Vasily Zakharov committed Oct 29, 2024
1 parent da3ace0 commit 07dfad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typeguard/_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
if TYPE_CHECKING:
from typeshed.stdlib.types import _Cell

def typeguard_ignore(f: T_CallableOrType) -> T_CallableOrType:
def typeguard_ignore(arg: T_CallableOrType) -> T_CallableOrType:
"""This decorator is a noop during static type-checking."""
return f
return arg

else:
from typing import no_type_check as typeguard_ignore # noqa: F401
Expand Down

0 comments on commit 07dfad7

Please sign in to comment.