Skip to content

ENH: implement _typing.DtypeObj #31426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 31, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

like Dtype, but doesnt include strings.

@jbrockmendel jbrockmendel added the Typing type annotations, mypy/pyright type checking label Jan 29, 2020
@@ -45,6 +45,7 @@
# other

Dtype = Union[str, np.dtype, "ExtensionDtype"]
DtypeObj = Union[np.dtype, "ExtensionDtype"]
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't we call this DtypeType?

Copy link
Member Author

Choose a reason for hiding this comment

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

DtypeType seems easy to confuse with dtype.type, like it would be the type for CategoricalDtypeType

Copy link
Contributor

Choose a reason for hiding this comment

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

ahh i c, so this is not a type, just a non-string Dtype. ok then.

@jreback jreback added this to the 1.1 milestone Jan 31, 2020
@jreback jreback merged commit 0701c5e into pandas-dev:master Jan 31, 2020
@jbrockmendel jbrockmendel deleted the dtype_obj branch January 31, 2020 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants