mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use typing_extensions.Self in the stdlib (#9694)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from _typeshed import Self
|
||||
from collections.abc import Iterable
|
||||
from typing import TextIO
|
||||
from typing_extensions import Self
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
__all__ = ["shlex", "split", "quote", "join"]
|
||||
@@ -46,5 +46,5 @@ class shlex(Iterable[str]):
|
||||
def push_source(self, newstream: str | TextIO, newfile: str | None = None) -> None: ...
|
||||
def pop_source(self) -> None: ...
|
||||
def error_leader(self, infile: str | None = None, lineno: int | None = None) -> None: ...
|
||||
def __iter__(self: Self) -> Self: ...
|
||||
def __iter__(self) -> Self: ...
|
||||
def __next__(self) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user