ExtensionDtype.
is_dtype
Check if we match ‘dtype’.
The object to check.
Notes
The default implementation is True if
cls.construct_from_string(dtype) is an instance of cls.
cls.construct_from_string(dtype)
cls
dtype is an object and is an instance of cls
dtype
dtype has a dtype attribute, and any of the above conditions is true for dtype.dtype.
dtype.dtype