mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 08:38:26 +08:00
Fix missing argument types in py3 stdlib (#995)
Still missing a few in _subprocess (a Windows-only private module) and decimal (I gave up).
This commit is contained in:
committed by
Guido van Rossum
parent
01b3915b3f
commit
11350ed8cc
@@ -2,7 +2,7 @@
|
||||
|
||||
# Based on http://docs.python.org/3.2/library/shlex.html
|
||||
|
||||
from typing import List, Tuple, Any, TextIO
|
||||
from typing import List, Tuple, Any, TextIO, Union, Optional
|
||||
|
||||
def split(s: str, comments: bool = ...,
|
||||
posix: bool = ...) -> List[str]: ...
|
||||
@@ -26,7 +26,7 @@ class shlex:
|
||||
token = ... # type: str
|
||||
eof = ... # type: str
|
||||
|
||||
def __init__(self, instream=..., infile=...,
|
||||
def __init__(self, instream: Union[str, TextIO] = ..., infile: Optional[str] = ...,
|
||||
posix: bool = ...) -> None: ...
|
||||
def get_token(self) -> str: ...
|
||||
def push_token(self, tok: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user