Skip to content

Commit

Permalink
fix decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Feb 21, 2025
1 parent ab69076 commit d097b36
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/_pytest/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
from typing_extensions import deprecated as deprecated
else:

def deprecated(func: object) -> object:
return func
def deprecated(reason: str = "") -> object:
def decorator(func: object) -> object:
return func

return decorator


CALLABLE_RAISES = PytestDeprecationWarning(
Expand Down

0 comments on commit d097b36

Please sign in to comment.