mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-05 20:38:25 +03:00
Fixed a few bugs in public typeshed files.
This commit is contained in:
parent
aefac4b9e5
commit
6f3d736c75
@ -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] = ...,
|
||||
|
@ -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: ...
|
||||
|
Loading…
Reference in New Issue
Block a user