mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Make shlex.shlex convertable to a list in Python 2. (#2927)
This simply copies the relevant lines over from the Python 3 stub.
This commit is contained in:
committed by
Sebastian Rittau
parent
97240083c4
commit
fd57aee5da
@@ -1,9 +1,12 @@
|
||||
from typing import Optional, List, Any, IO
|
||||
from typing import Any, IO, List, Optional, TypeVar
|
||||
|
||||
def split(s: Optional[str], comments: bool = ..., posix: bool = ...) -> List[str]: ...
|
||||
|
||||
_SLT = TypeVar('_SLT', bound=shlex)
|
||||
|
||||
class shlex:
|
||||
def __init__(self, instream: IO[Any] = ..., infile: IO[Any] = ..., posix: bool = ...) -> None: ...
|
||||
def __iter__(self: _SLT) -> _SLT: ...
|
||||
def get_token(self) -> Optional[str]: ...
|
||||
def push_token(self, _str: str) -> None: ...
|
||||
def read_token(self) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user