Skip to content

Commit

Permalink
mypy fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Dec 1, 2023
1 parent 9a627d2 commit 4af5d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/tests/io/excel/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def get_exp_unit(read_ext: str, engine: str | None) -> str:
def adjust_expected(expected: DataFrame, read_ext: str, engine: str) -> None:
expected.index.name = None
unit = get_exp_unit(read_ext, engine)
expected.index = expected.index.as_unit(unit)
# error: "Index" has no attribute "as_unit"
expected.index = expected.index.as_unit(unit) # type: ignore[attr-defined]


def xfail_datetimes_with_pyxlsb(engine, request):
Expand Down

0 comments on commit 4af5d4c

Please sign in to comment.