From 8f056ef106d41d00bc5f3034724eb1e50e5054bc Mon Sep 17 00:00:00 2001 From: Brock Date: Tue, 5 Dec 2023 15:27:09 -0800 Subject: [PATCH] mypy fixup --- pandas/_libs/tslibs/dtypes.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/dtypes.pyi b/pandas/_libs/tslibs/dtypes.pyi index 76649aaaa41bf7..9d3d014467a929 100644 --- a/pandas/_libs/tslibs/dtypes.pyi +++ b/pandas/_libs/tslibs/dtypes.pyi @@ -7,7 +7,7 @@ def periods_per_second(reso: int) -> int: ... def is_supported_unit(reso: int) -> bool: ... def npy_unit_to_abbrev(unit: int) -> str: ... def get_supported_reso(reso: int) -> int: ... -def abbrev_to_npy_unit(abbrev: str) -> int: ... +def abbrev_to_npy_unit(abbrev: str | None) -> int: ... def freq_to_period_freqstr(freq_n: int, freq_name: str) -> str: ... class PeriodDtypeBase: