Skip to content

Commit

Permalink
fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
dulmandakh committed Jul 6, 2024
1 parent e361354 commit f2ac42d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphene/utils/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def deprecated(reason):

def decorator(func1):
if inspect.isclass(func1):
fmt1 = f"Call to deprecated class {func1.__name__} ({reason})."
fmt1 = f"Call to deprecated class {func1.__name__} ({reason!r})."
else:
fmt1 = f"Call to deprecated function {func1.__name__} ({reason})."
fmt1 = f"Call to deprecated function {func1.__name__} ({reason!r})."

@functools.wraps(func1)
def new_func1(*args, **kwargs):
Expand Down

0 comments on commit f2ac42d

Please sign in to comment.