diff --git a/pandas-stubs/core/dtypes/common.pyi b/pandas-stubs/core/dtypes/common.pyi index c4a7bfc32..d6fa1b2a9 100644 --- a/pandas-stubs/core/dtypes/common.pyi +++ b/pandas-stubs/core/dtypes/common.pyi @@ -4,6 +4,7 @@ from typing_extensions import TypeAlias from pandas._typing import ( ArrayLike, + Dtype, DtypeObj, npt, ) @@ -33,7 +34,7 @@ _ArrayOrDtype: TypeAlias = ( def is_object_dtype(arr_or_dtype: _ArrayOrDtype) -> bool: ... def is_datetime64_dtype(arr_or_dtype: _ArrayOrDtype) -> bool: ... def is_timedelta64_dtype(arr_or_dtype: _ArrayOrDtype) -> bool: ... -def is_dtype_equal(source, target) -> bool: ... +def is_dtype_equal(source: Dtype, target: Dtype) -> bool: ... def is_string_dtype(arr_or_dtype: _ArrayOrDtype) -> bool: ... def is_integer_dtype(arr_or_dtype: _ArrayOrDtype) -> bool: ... def is_signed_integer_dtype(arr_or_dtype: _ArrayOrDtype) -> bool: ...