-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
Fix mypy error messages in pandas/test/tseries/offsets/test_offsets.py #29340
Fix mypy error messages in pandas/test/tseries/offsets/test_offsets.py #29340
Conversation
lgtm @simonjayhawkins |
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.
@samuelsinayoko Thanks for the PR. lgtm. @WillAyd
@@ -90,6 +90,7 @@ def test_to_M8(): | |||
##### | |||
# DateOffset Tests | |||
##### | |||
_ApplyCases = List[Tuple[int, Dict[datetime, datetime]]] |
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.
_ApplyCases = List[Tuple[int, Dict[datetime, datetime]]] | |
_ApplyCases = List[Tuple[BaseOffset, Dict[datetime, datetime]]] |
Kind of tricky but I don't think int
is in play at all here but these are rather all BaseOffset
subclasses.
This only "works" because there is no stub for pandas.tseries.offsets
and all of the instances here resolve to Any
. Assumedly if we stubbed that module it would cause failures if this stays as int
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.
good point. Have just pushed this change.
Great thanks @samuelsinayoko |
Activate and fix mypy for test offsets
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff