Skip to content

Fix Type Annotations in pandas/_config/config.py #25899

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

Closed
WillAyd opened this issue Mar 28, 2019 · 3 comments · Fixed by #25918
Closed

Fix Type Annotations in pandas/_config/config.py #25899

WillAyd opened this issue Mar 28, 2019 · 3 comments · Fixed by #25918
Labels
good first issue Typing type annotations, mypy/pyright type checking
Milestone

Comments

@WillAyd
Copy link
Member

WillAyd commented Mar 28, 2019

Part of #25882

Current errors are as follows:

pandas/_config/config.py:60: error: Need type annotation for '_deprecated_options'
pandas/_config/config.py:61: error: Need type annotation for '_registered_options'
pandas/_config/config.py:62: error: Need type annotation for '_global_config'

Should add annotations and remove this module from mypy.ini - think this is straightforward so community PR is certainly welcome!

@WillAyd WillAyd added good first issue Typing type annotations, mypy/pyright type checking labels Mar 28, 2019
@WillAyd WillAyd added this to the Contributions Welcome milestone Mar 28, 2019
@vaibhavhrt
Copy link
Contributor

I will take care of this too.

@vaibhavhrt
Copy link
Contributor

The problem with these three are that they already have a comment describing what these variables do. If I add type comment too the line becomes too long:

_deprecated_options = {}  # type: Dict[str, str]  # holds deprecated option metdata

How should I split it to multiple lines

@WillAyd
Copy link
Member Author

WillAyd commented Mar 28, 2019 via email

@jreback jreback modified the milestones: Contributions Welcome, 0.25.0 Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants