mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use typing_extensions.Self in the stdlib (#9694)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user