Skip to content

Commit 88cb50f

Browse files
committed
Fix for type check failures
1 parent 29eed79 commit 88cb50f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/core/dtypes/cast.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787

8888
if TYPE_CHECKING:
8989
from collections.abc import (
90+
Mapping,
9091
Sequence,
9192
Sized,
9293
)
@@ -860,13 +861,13 @@ def infer_dtype_from_scalar(val) -> tuple[DtypeObj, Any]:
860861
return dtype, val
861862

862863

863-
def dict_compat(d: dict[Scalar, Scalar]) -> dict[Scalar, Scalar]:
864+
def dict_compat(d: Mapping[Scalar, Scalar]) -> dict[Scalar, Scalar]:
864865
"""
865-
Convert datetimelike-keyed dicts to a Timestamp-keyed dict.
866+
Convert datetimelike-keyed Mappings to a Timestamp-keyed dict.
866867
867868
Parameters
868869
----------
869-
d: dict-like object
870+
d: Mapping object
870871
871872
Returns
872873
-------

0 commit comments

Comments
 (0)