mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
Use typing_extensions.Self in the stdlib (#9694)
This commit is contained in:
1 parent
10086c06a1
commit
9ed39d8796
98 files changed
+627
-654
No files matched your search
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Self, StrPath
|
||||
from typing_extensions import TypeAlias
|
||||
from _typeshed import StrPath
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
_Label: TypeAlias = tuple[int, str | None]
|
||||
_DFA: TypeAlias = list[list[tuple[int, int]]]
|
||||
@@ -17,7 +17,7 @@ class Grammar:
|
||||
start: int
|
||||
def dump(self, filename: StrPath) -> None: ...
|
||||
def load(self, filename: StrPath) -> None: ...
|
||||
def copy(self: Self) -> Self: ...
|
||||
def copy(self) -> Self: ...
|
||||
def report(self) -> None: ...
|
||||
|
||||
opmap_raw: str
|
||||
|
||||
Reference in new issue
Block a user