Skip to content

Commit

Permalink
ignore typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Oct 26, 2023
1 parent 2b5c4b0 commit c55e46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def _maybe_promote(dtype: np.dtype, fill_value=np.nan):
dtype = np.dtype(np.object_)

elif issubclass(dtype.type, np.integer):
if not np_can_cast_scalar(fill_value, dtype):
if not np_can_cast_scalar(fill_value, dtype): # type: ignore[arg-type]
# upcast to prevent overflow
mst = np.min_scalar_type(fill_value)
dtype = np.promote_types(dtype, mst)
Expand Down

0 comments on commit c55e46e

Please sign in to comment.