-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
STYLE: fix pylint redefined-oute-name warnings (pandas-dev#49656) #49668
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
STYLE: fix pylint redefined-oute-name warnings (pandas-dev#49656) #49668
Conversation
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.
thanks for working on this!
pandas/core/internals/concat.py
Outdated
@@ -1,6 +1,6 @@ | |||
from __future__ import annotations | |||
|
|||
import copy | |||
import copy as _copy_ |
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.
how about import copy as stdlib_copy
?
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.
right, i am working on that.
pandas/core/reshape/merge.py
Outdated
@@ -3,7 +3,7 @@ | |||
""" | |||
from __future__ import annotations | |||
|
|||
import copy | |||
import copy as _copy_ |
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.
same comment as above
pandas/io/json/_json.py
Outdated
def _get_object_parser(self, json) -> DataFrame | Series: | ||
def _get_object_parser(self, json_object) -> DataFrame | Series: |
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.
if you're no longer import json
, then can this argument stay the same?
pandas/io/json/_json.py
Outdated
json, | ||
json_object, |
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.
same as above
you'll need to run pre-commit checks (see the contributing guide for how to do that), but apart from that looks good |
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.
@giridhrubajyoti2002 can you run
pre-commit run --files pandas/core/internals/concat.py
(and similarly for the other files you've modified) please?
closing as stale, thanks anyway for your PR! |
Fixed warnings for the following files :-