mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use _typeshed.Self in Python 2, too (#6932)
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
from typing import IO, Any, List, Text, TypeVar
|
||||
from _typeshed import Self
|
||||
from typing import IO, Any, List, Text
|
||||
|
||||
def split(s: str | None, comments: bool = ..., posix: bool = ...) -> List[str]: ...
|
||||
|
||||
_SLT = TypeVar("_SLT", bound=shlex)
|
||||
|
||||
class shlex:
|
||||
def __init__(self, instream: IO[Any] | Text = ..., infile: IO[Any] = ..., posix: bool = ...) -> None: ...
|
||||
def __iter__(self: _SLT) -> _SLT: ...
|
||||
def __iter__(self: Self) -> Self: ...
|
||||
def next(self) -> str: ...
|
||||
def get_token(self) -> str | None: ...
|
||||
def push_token(self, _str: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user