Skip to content

Commit d974a1e

Browse files
committed
mypy fixup
1 parent 4ada17e commit d974a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/datetimelike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,7 +2142,7 @@ def unit(self) -> TimeUnit:
21422142
"""
21432143
# error: Incompatible return value type (got "str", expected
21442144
# "Literal['s', 'ms', 'us', 'ns']") [return-value]
2145-
return dtype_to_unit(self.dtype) # type: ignore[return-value]
2145+
return dtype_to_unit(self.dtype) # type: ignore[return-value,arg-type]
21462146

21472147
def as_unit(self, unit: TimeUnit, round_ok: bool = True) -> Self:
21482148
"""

0 commit comments

Comments
 (0)