Skip to content

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
# 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