@@ -42,10 +42,10 @@ def to_json(
42
42
orient : Optional [str ] = None ,
43
43
date_format : str = "epoch" ,
44
44
double_precision : int = 10 ,
45
- force_ascii : bool = True ,
45
+ force_ascii : bool = True ,
46
46
date_unit : str = "ms" ,
47
- default_handler : Optional [Callable [[Any ], Serializable ]]= None ,
48
- lines : bool = False ,
47
+ default_handler : Optional [Callable [[Any ], Serializable ]] = None ,
48
+ lines : bool = False ,
49
49
compression : Optional [str ] = "infer" ,
50
50
index : bool = True ,
51
51
indent : int = 0 ,
@@ -99,7 +99,6 @@ def to_json(
99
99
100
100
101
101
class Writer :
102
-
103
102
def __init__ (
104
103
self ,
105
104
obj ,
@@ -109,7 +108,7 @@ def __init__(
109
108
ensure_ascii : bool ,
110
109
date_unit : str ,
111
110
index : bool ,
112
- default_handler : Optional [Callable [[Any ], Serializable ]]= None ,
111
+ default_handler : Optional [Callable [[Any ], Serializable ]] = None ,
113
112
indent : int = 0 ,
114
113
):
115
114
self .obj = obj
@@ -262,8 +261,8 @@ def __init__(
262
261
ensure_ascii : bool ,
263
262
date_unit : str ,
264
263
index : bool ,
265
- default_handler : Optional [Callable [[Any ], Serializable ]]= None ,
266
- indent : int = 0 ,
264
+ default_handler : Optional [Callable [[Any ], Serializable ]] = None ,
265
+ indent : int = 0 ,
267
266
):
268
267
"""
269
268
Adds a `schema` attribute with the Table Schema, resets
@@ -343,7 +342,7 @@ def _write(
343
342
date_unit ,
344
343
iso_dates ,
345
344
default_handler ,
346
- indent
345
+ indent ,
347
346
)
348
347
serialized = '{{"schema": {schema}, "data": {data}}}' .format (
349
348
schema = dumps (self .schema ), data = data
0 commit comments