Skip to content

Commit 2ea93bb

Browse files
committed
in write_array add type hint to obj
1 parent e2c215c commit 2ea93bb

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
@@ -2968,7 +2968,7 @@ def write_array_empty(self, key: str, value: ArrayLike):
29682968
node._v_attrs.value_type = str(value.dtype)
29692969
node._v_attrs.shape = value.shape
29702970

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

0 commit comments

Comments
 (0)