From f2ac42d9e15ab9bc36f30dcf6c4bcd94354ea580 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sat, 6 Jul 2024 10:32:26 +0800 Subject: [PATCH] fix mypy error --- graphene/utils/deprecated.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/utils/deprecated.py b/graphene/utils/deprecated.py index 42c358fb..9a8b14af 100644 --- a/graphene/utils/deprecated.py +++ b/graphene/utils/deprecated.py @@ -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):