3 from typing import Any, Iterable, Iterator, List, Optional, Sequence
\r
5 QUOTE_ALL = ... # type: int
\r
6 QUOTE_MINIMAL = ... # type: int
\r
7 QUOTE_NONE = ... # type: int
\r
8 QUOTE_NONNUMERIC = ... # type: int
\r
10 class Error(Exception): ...
\r
13 delimiter = ... # type: str
\r
14 quotechar = ... # type: Optional[str]
\r
15 escapechar = ... # type: Optional[str]
\r
16 doublequote = ... # type: bool
\r
17 skipinitialspace = ... # type: bool
\r
18 lineterminator = ... # type: str
\r
19 quoting = ... # type: int
\r
20 strict = ... # type: int
\r
21 def __init__(self) -> None: ...
\r
23 class _reader(Iterator[List[str]]):
\r
24 dialect = ... # type: Dialect
\r
25 line_num = ... # type: int
\r
26 if sys.version_info >= (3, 0):
\r
27 def __next__(self) -> List[str]: ...
\r
29 def next(self) -> List[str]: ...
\r
32 dialect = ... # type: Dialect
\r
34 if sys.version_info >= (3, 5):
\r
35 def writerow(self, row: Iterable[Any]) -> None: ...
\r
36 def writerows(self, rows: Iterable[Iterable[Any]]) -> None: ...
\r
38 def writerow(self, row: Sequence[Any]) -> None: ...
\r
39 def writerows(self, rows: Iterable[Sequence[Any]]) -> None: ...
\r
42 # TODO: precise type
\r
43 def writer(csvfile: Any, dialect: Any = ..., **fmtparams: Any) -> _writer: ...
\r
44 def reader(csvfile: Iterable[str], dialect: Any = ..., **fmtparams: Any) -> _reader: ...
\r
45 def register_dialect(name: str, dialect: Any = ..., **fmtparams: Any) -> None: ...
\r
46 def unregister_dialect(name: str) -> None: ...
\r
47 def get_dialect(name: str) -> Dialect: ...
\r
48 def list_dialects() -> List[str]: ...
\r
49 def field_size_limit(new_limit: int = ...) -> int: ...
\r