Use typing_extensions.Self in the stdlib (#9694)

This commit is contained in:
Alex Waygood
2023-02-09 09:12:13 +00:00
committed by GitHub
parent 10086c06a1
commit 9ed39d8796
98 changed files with 627 additions and 654 deletions

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import Self
from typing import Any
from typing_extensions import Self
MAXGROUPS: int
@@ -16,7 +16,7 @@ class error(Exception):
class _NamedIntConstant(int):
name: Any
def __new__(cls: type[Self], value: int, name: str) -> Self: ...
def __new__(cls, value: int, name: str) -> Self: ...
MAXREPEAT: _NamedIntConstant
OPCODES: list[_NamedIntConstant]