diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 6be6787862654..a02a8b8b110bf 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -1156,7 +1156,7 @@ def __ne__(self, other: object) -> bool: @classmethod def is_dtype(cls, dtype: object) -> bool: """ - Return a boolean if we if the passed type is an actual dtype that we + Return a boolean if the passed type is an actual dtype that we can match (via string or type) """ if isinstance(dtype, str): @@ -1436,7 +1436,7 @@ def __setstate__(self, state) -> None: @classmethod def is_dtype(cls, dtype: object) -> bool: """ - Return a boolean if we if the passed type is an actual dtype that we + Return a boolean if the passed type is an actual dtype that we can match (via string or type) """ if isinstance(dtype, str):