Skip to content

Commit d30f5bf

Browse files
committed
in write_array add type hint to obj
1 parent 35e9c6e commit d30f5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/pytables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2960,7 +2960,7 @@ def write_array_empty(self, key: str, value: ArrayLike):
29602960
node._v_attrs.value_type = str(value.dtype)
29612961
node._v_attrs.shape = value.shape
29622962

2963-
def write_array(self, key: str, obj, items: Optional[Index] = None):
2963+
def write_array(self, key: str, obj: Series, items: Optional[Index] = None):
29642964
# TODO: we only have a few tests that get here, the only EA
29652965
# that gets passed is DatetimeArray, and we never have
29662966
# both self._filters and EA

0 commit comments

Comments
 (0)