Skip to content

fix dtype-str concatenation bug in empty()#902

Merged
martindurant merged 2 commits intodask:mainfrom
cshaley:bugfix/empty_dtype
Nov 17, 2023
Merged

fix dtype-str concatenation bug in empty()#902
martindurant merged 2 commits intodask:mainfrom
cshaley:bugfix/empty_dtype

Conversation

@cshaley
Copy link

@cshaley cshaley commented Nov 17, 2023

Bug discovered here: intake/uavro#10

t is always a dtype. You can't concatenate a dtype with a str. So when this case is hit, it raises. The line below, (d = np.empty(0, dtype=t)) works as desired when t is a str.

@martindurant
Copy link
Member

martindurant commented Nov 17, 2023

(please merge from main to pick up the CI change that should fix the pandas build)

-edit: done-

@martindurant martindurant merged commit cea4afe into dask:main Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants