File size: 821 Bytes
0c51b93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from typing import Any, Iterable, Iterator, Optional, TextIO

class jsonlines:
    class Reader:
        def __init__(self, iterable: Iterable[Any], **kwargs: Any) -> None: ...
        def iter(
            self,
            type: Optional[Any] = None,
            skip_invalid: bool = False,
            skip_empty: bool = False,
        ) -> Iterator[Any]: ...
        def read(
            self,
            type: Optional[Any] = None,
            skip_invalid: bool = False,
            skip_empty: bool = False,
        ) -> Any: ...
        def close(self) -> None: ...

    class Writer:
        def __init__(self, writable: TextIO, **kwargs: Any) -> None: ...
        def write(self, obj: Any) -> None: ...
        def close(self) -> None: ...

def open(filename: str, mode: str = "r", **kwargs: Any) -> Any: ...