Skip to content

Conversation

@flying-sheep
Copy link

@flying-sheep flying-sheep commented Feb 8, 2026

Fixes #3692

TODO:

  • Add unit tests and/or doctests in docstrings
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Feb 8, 2026
@github-actions github-actions bot removed the needs release notes Automatically applied to PRs which haven't added release notes label Feb 8, 2026
Comment on lines +162 to +168
if dtype.kind == "T" and hasattr(dtype, "na_object"):
msg = (
f"Zarr data type resolution from {dtype} failed. "
"Attempted to resolve a zarr data type from a `numpy.dtypes.StringDType` "
"with `na_object` set, which is not supported."
)
raise ValueError(msg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you OK with moving this logic to the from_native_dtype method on the VariableLengthUTF8 class? It should be after we have checked that the input is numpy StringDType. I'm happy to implement this if that change is OK with you.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, go ahead! I just wanted to get this started!

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.

np.dtypes.StringDType(na_object=None) doesn’t get preserved

2 participants