From b2375ddaebc8fec202b5c9f430c65fd6941cc848 Mon Sep 17 00:00:00 2001 From: Akuli Date: Wed, 12 Jan 2022 21:07:57 +0200 Subject: [PATCH] Enable pyright for Python 3.11 (#6904) --- .github/workflows/tests.yml | 2 +- stdlib/enum.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 225032b9d..2efa4de29 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,7 +69,7 @@ jobs: strategy: matrix: python-platform: ["Linux", "Windows", "Darwin"] - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] fail-fast: false env: PYRIGHT_VERSION: 1.1.204 # Must match pyright_test.py. diff --git a/stdlib/enum.pyi b/stdlib/enum.pyi index 6b7a680fc..efc668720 100644 --- a/stdlib/enum.pyi +++ b/stdlib/enum.pyi @@ -33,7 +33,7 @@ class _EnumDict(dict[str, Any]): class EnumMeta(ABCMeta): if sys.version_info >= (3, 11): def __new__( - metacls: type[Self], + metacls: type[Self], # type: ignore cls: str, bases: tuple[type, ...], classdict: _EnumDict,