-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
Conversation
e083475
to
fcffdff
Compare
pandas/tests/indexing/common.py
Outdated
import itertools | ||
from typing import Dict, Hashable, Union |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
thanks @topper-123 |
clean-up of tests/indexing/common.py.