Fixed a few bugs in public typeshed files.

This commit is contained in:
Eric Traut 2019-03-17 17:26:35 -07:00
parent aefac4b9e5
commit 6f3d736c75
2 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class _ActionsContainer:
nargs: Union[int, _Text] = ...,
const: Any = ...,
default: Any = ...,
type: Union[Callable[[str], _T], FileType] = ...,
type: Union[Callable[[str], _T], FileType, type] = ...,
choices: Iterable[_T] = ...,
required: bool = ...,
help: Optional[_Text] = ...,

View File

@ -63,8 +63,8 @@ class DictReader(Iterator[_DRMapping]):
reader = ... # type: _reader
dialect = ... # type: _Dialect
line_num = ... # type: int
fieldnames = ... # type: Sequence[str]
def __init__(self, f: Iterable[str], fieldnames: Sequence[str] = ...,
fieldnames = ... # type: Iterable[str]
def __init__(self, f: Iterable[str], fieldnames: Iterable[str] = ...,
restkey: Optional[str] = ..., restval: Optional[str] = ..., dialect: _Dialect = ...,
*args: Any, **kwds: Any) -> None: ...
def __iter__(self) -> DictReader: ...
@ -75,11 +75,11 @@ class DictReader(Iterator[_DRMapping]):
class DictWriter(object):
fieldnames = ... # type: Sequence[str]
fieldnames = ... # type: Iterable[str]
restval = ... # type: Optional[Any]
extrasaction = ... # type: str
writer = ... # type: _writer
def __init__(self, f: Any, fieldnames: Sequence[str],
def __init__(self, f: Any, fieldnames: Iterable[str],
restval: Optional[Any] = ..., extrasaction: str = ..., dialect: _Dialect = ...,
*args: Any, **kwds: Any) -> None: ...
def writeheader(self) -> None: ...