Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2093,11 +2093,8 @@ def convert(self, values: np.ndarray, nan_rep, encoding: str, errors: str):
if "freq" in kwargs:
kwargs["freq"] = None
new_pd_index = factory(values, **kwargs)

# error: Incompatible types in assignment (expression has type
# "Union[ndarray, DatetimeIndex]", variable has type "Index")
new_pd_index = _set_tz(new_pd_index, self.tz) # type: ignore[assignment]
return new_pd_index, new_pd_index
final_pd_index = _set_tz(new_pd_index, self.tz)
return final_pd_index, final_pd_index

def take_data(self):
"""return the values"""
Expand Down