From 2ad8db51ada34bd7d971781feb438bd135261c7b Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 7 Jan 2022 19:21:10 +0100 Subject: [PATCH] Update to mypy 0.931 (#6850) Co-authored-by: Jelle Zijlstra --- requirements-tests.txt | 2 +- tests/stubtest_allowlists/py3_common.txt | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index d20514296..bc574e18b 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -1,4 +1,4 @@ -mypy==0.930 +mypy==0.931 pytype==2022.01.05; platform_system != "Windows" and python_version < "3.10" # must match .pre-commit-config.yaml black==21.12b0 diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index fbeea97b5..691e882ad 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -105,12 +105,6 @@ importlib.abc.MetaPathFinder.find_spec # Not defined on the actual class, but e importlib.abc.PathEntryFinder.find_spec # Not defined on the actual class, but expected to exist. importlib.machinery.ExtensionFileLoader.get_filename # Wrapped with _check_name decorator which changes runtime signature inspect.Parameter.empty # set as private marker _empty -# inspect.Parameter: the Literal[enum_member] annotations are too complex for stubtest to parse -inspect.Parameter.KEYWORD_ONLY -inspect.Parameter.POSITIONAL_ONLY -inspect.Parameter.POSITIONAL_OR_KEYWORD -inspect.Parameter.VAR_KEYWORD -inspect.Parameter.VAR_POSITIONAL inspect.Signature.empty # set as private marker _empty inspect.Signature.from_builtin # Removed in 3.11, can add if someone needs this inspect.Signature.from_function # Removed in 3.11, can add if someone needs this