@@ -2931,7 +2931,7 @@ def read_index_node(
2931
2931
# If the index was an empty array write_array_empty() will
2932
2932
# have written a sentinel. Here we replace it with the original.
2933
2933
if "shape" in node ._v_attrs and np .prod (node ._v_attrs .shape ) == 0 :
2934
- data = np .empty (node ._v_attrs .shape , dtype = node ._v_attrs .value_type , )
2934
+ data = np .empty (node ._v_attrs .shape , dtype = node ._v_attrs .value_type )
2935
2935
kind = _ensure_decoded (node ._v_attrs .kind )
2936
2936
name = None
2937
2937
@@ -4103,7 +4103,7 @@ def create_description(
4103
4103
return d
4104
4104
4105
4105
def read_coordinates (
4106
- self , where = None , start : Optional [int ] = None , stop : Optional [int ] = None ,
4106
+ self , where = None , start : Optional [int ] = None , stop : Optional [int ] = None
4107
4107
):
4108
4108
"""
4109
4109
select coordinates (row numbers) from a table; return the
@@ -4374,7 +4374,7 @@ def write_data_chunk(
4374
4374
self .table .flush ()
4375
4375
4376
4376
def delete (
4377
- self , where = None , start : Optional [int ] = None , stop : Optional [int ] = None ,
4377
+ self , where = None , start : Optional [int ] = None , stop : Optional [int ] = None
4378
4378
):
4379
4379
4380
4380
# delete all rows (and return the nrows)
@@ -4805,7 +4805,7 @@ def _convert_index(name: str, index: Index, encoding: str, errors: str) -> Index
4805
4805
if inferred_type == "date" :
4806
4806
converted = np .asarray ([v .toordinal () for v in values ], dtype = np .int32 )
4807
4807
return IndexCol (
4808
- name , converted , "date" , _tables ().Time32Col (), index_name = index_name ,
4808
+ name , converted , "date" , _tables ().Time32Col (), index_name = index_name
4809
4809
)
4810
4810
elif inferred_type == "string" :
4811
4811
@@ -4821,13 +4821,13 @@ def _convert_index(name: str, index: Index, encoding: str, errors: str) -> Index
4821
4821
4822
4822
elif inferred_type in ["integer" , "floating" ]:
4823
4823
return IndexCol (
4824
- name , values = converted , kind = kind , typ = atom , index_name = index_name ,
4824
+ name , values = converted , kind = kind , typ = atom , index_name = index_name
4825
4825
)
4826
4826
else :
4827
4827
assert isinstance (converted , np .ndarray ) and converted .dtype == object
4828
4828
assert kind == "object" , kind
4829
4829
atom = _tables ().ObjectAtom ()
4830
- return IndexCol (name , converted , kind , atom , index_name = index_name , )
4830
+ return IndexCol (name , converted , kind , atom , index_name = index_name )
4831
4831
4832
4832
4833
4833
def _unconvert_index (
0 commit comments