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

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