From e94a8ae3fae9d312eea1d49bd411a02ba5fbabc3 Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Thu, 18 Jul 2019 19:53:45 +0200 Subject: [PATCH] Silence mypy --- graphql/pyutils/compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql/pyutils/compat.py b/graphql/pyutils/compat.py index ff770882..90769cbe 100644 --- a/graphql/pyutils/compat.py +++ b/graphql/pyutils/compat.py @@ -54,7 +54,7 @@ advance_iterator = next except NameError: - def advance_iterator(it): + def advance_iterator(it): # type: ignore return it.next() @@ -65,7 +65,7 @@ def advance_iterator(it): callable = callable # type: Callable except NameError: - def callable(obj): + def callable(obj): # type: ignore return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)