Skip to content

Commit 040f236

Browse files
TYP: changed variable new_pd_index to final_pd_index (pandas-dev#44500)
1 parent 2d3f3df commit 040f236

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/io/pytables.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -2093,11 +2093,8 @@ def convert(self, values: np.ndarray, nan_rep, encoding: str, errors: str):
20932093
if "freq" in kwargs:
20942094
kwargs["freq"] = None
20952095
new_pd_index = factory(values, **kwargs)
2096-
2097-
# error: Incompatible types in assignment (expression has type
2098-
# "Union[ndarray, DatetimeIndex]", variable has type "Index")
2099-
new_pd_index = _set_tz(new_pd_index, self.tz) # type: ignore[assignment]
2100-
return new_pd_index, new_pd_index
2096+
final_pd_index = _set_tz(new_pd_index, self.tz)
2097+
return final_pd_index, final_pd_index
21012098

21022099
def take_data(self):
21032100
"""return the values"""

0 commit comments

Comments
 (0)