Skip to content

clean tests/indexing/common.py #28904

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
Oct 11, 2019

Conversation

topper-123
Copy link
Contributor

clean-up of tests/indexing/common.py.

@topper-123 topper-123 force-pushed the clean_indexing_common branch from e083475 to fcffdff Compare October 10, 2019 20:09
import itertools
from typing import Dict, Hashable, Union
Copy link
Member

Choose a reason for hiding this comment

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

@topper-123 we have ignore_errors=True for pandas.tests.* in setup.cfg

so I am -1 on adding types that aren't checked. If not correct could be more confusing.

I am not against adding types to the tests, but we need to enable the reporting of errors first IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't know that, makes sense that type checking should be turned on before we use type hints. I'll remove the type hints.

I'm also +1 for adding type checking on for tests; they do make it easier to understand what you're looking at.

@simonjayhawkins simonjayhawkins added Clean Testing pandas testing functions or related to the test suite Typing type annotations, mypy/pyright type checking labels Oct 10, 2019
@simonjayhawkins simonjayhawkins removed the Typing type annotations, mypy/pyright type checking label Oct 10, 2019
@jreback jreback added this to the 1.0 milestone Oct 11, 2019
@jreback jreback merged commit a4c92ca into pandas-dev:master Oct 11, 2019
@jreback
Copy link
Contributor

jreback commented Oct 11, 2019

thanks @topper-123

@jreback jreback added the Indexing Related to indexing on series/frames, not to indexes themselves label Oct 11, 2019
@topper-123 topper-123 deleted the clean_indexing_common branch October 11, 2019 16:07
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
bongolegend pushed a commit to bongolegend/pandas that referenced this pull request Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Indexing Related to indexing on series/frames, not to indexes themselves Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants