Added some missing type annotations in stdlib stubs. (#4418)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2020-08-08 11:49:37 -07:00
committed by GitHub
parent 030e5ad1dd
commit f46fb7ff59
16 changed files with 34 additions and 31 deletions

View File

@@ -60,7 +60,7 @@ def _strftime(value: _XMLDate) -> str: ... # undocumented
class DateTime:
value: str # undocumented
def __init__(self, value: Union[int, str, datetime, time.struct_time, Tuple[int, ...]] = ...): ...
def __init__(self, value: Union[int, str, datetime, time.struct_time, Tuple[int, ...]] = ...) -> None: ...
def __lt__(self, other: _DateTimeComparable) -> bool: ...
def __le__(self, other: _DateTimeComparable) -> bool: ...
def __gt__(self, other: _DateTimeComparable) -> bool: ...
@@ -268,7 +268,7 @@ class ServerProxy:
if sys.version_info >= (3, 8):
def __init__(
self,
uri,
uri: str,
transport: Optional[Transport] = ...,
encoding: Optional[str] = ...,
verbose: bool = ...,
@@ -282,7 +282,7 @@ class ServerProxy:
else:
def __init__(
self,
uri,
uri: str,
transport: Optional[Transport] = ...,
encoding: Optional[str] = ...,
verbose: bool = ...,