Skip to content

Conversation

@simonjayhawkins
Copy link
Member

No description provided.

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Jan 27, 2020
)

_dtypes = {
_dtypes: Dict[str, _IntegerDtype] = {
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't infer this?

Copy link
Member Author

Choose a reason for hiding this comment

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

looks like it now does, probably added this to address mypy error in another module before addressing pandas\core\arrays\integer.py:712: error: Need type annotation for 'Int16Dtype' etc in this module. (these changes are broken off another branch)

I'll look into this further, and whether we can find variable type annotations throughout the codebase that are no longer needed as more types are added.

@WillAyd WillAyd added this to the 1.1 milestone Jan 31, 2020
@WillAyd WillAyd merged commit 85e4d6f into pandas-dev:master Jan 31, 2020
@WillAyd
Copy link
Member

WillAyd commented Jan 31, 2020

Thanks @simonjayhawkins

@simonjayhawkins simonjayhawkins deleted the typing-integer-array branch January 31, 2020 15:01
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.

2 participants