Skip to content

Commit

Permalink
get tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Aug 4, 2024
1 parent f3d8f58 commit a966311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pint_pandas/pint_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class PintArray(ExtensionArray, ExtensionScalarOpsMixin):

def __init__(self, values, dtype=None, copy=False):
# infer subdtype from values if not given in dtype
if isinstance(dtype, str) and dtype.count("[") == 1:
if isinstance(dtype, str) and dtype.count("[") <= 1:
_dtype = PintType(dtype)
values = pd.array(values, copy=copy)
dtype = PintType(units=_dtype.units, subdtype=values.dtype)
Expand Down

0 comments on commit a966311

Please sign in to comment.