mirror of
https://github.com/graphql-python/graphene.git
synced 2025-04-05 09:54:15 +03:00
fix mypy error
This commit is contained in:
parent
e3613541c3
commit
f2ac42d9e1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user