BUG: Cannot create third-party ExtensionArrays for datetime types #34986
Labels
Bug
ExtensionArray
Extending pandas with custom dtypes or arrays.
Regression
Functionality that used to work in a prior pandas version
Timestamp
pd.Timestamp and associated methods
Timezones
Timezone data dtype
Milestone
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample: #34987
Problem description
With #33400 type checks now fasttrack on the kind of the
dtype
. Thus for everyExtensionDtype
that is of kindM
,is_datetime64tz_dtype
returnsTrue
. This is then used inget_block_type
which leads to the usage ofDatetimeTZBlock
for all of these arrays although this block only supportsDatetimeArray
.pandas/pandas/core/internals/blocks.py
Lines 2685 to 2690 in 4f7d8bb
The text was updated successfully, but these errors were encountered: