Enable pyright for Python 3.11 (#6904)

This commit is contained in:
Akuli
2022-01-12 21:07:57 +02:00
committed by GitHub
parent a4b30c4360
commit b2375ddaeb
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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,