-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN upgrade to Python3.7+ syntax #36450
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
Labels
Milestone
Comments
I'll try to submit a PR for this. take |
ahgamut
added a commit
to ahgamut/pandas
that referenced
this issue
Sep 18, 2020
Ran pyupgrade on all files unchecked in pandas-dev#36450. formatter pre-commit hook had no complaints; removed unnecessary imports from the following to satisfy flake8 hook: pandas/tests/io/test_sql.py pandas/tests/io/parser/test_read_fwf.py pandas/test/series/test_io.py
ahgamut
added a commit
to ahgamut/pandas
that referenced
this issue
Sep 18, 2020
Ran pyupgrade on all files unchecked in pandas-dev#36450. formatter pre-commit hook had no complaints; removed unnecessary imports from the following to satisfy flake8 hook: pandas/tests/io/test_sql.py pandas/test/series/test_io.py
5 tasks
I've submitted #36457 for all the unchecked files. |
jreback
pushed a commit
that referenced
this issue
Sep 18, 2020
kesmit13
pushed a commit
to kesmit13/pandas
that referenced
this issue
Nov 2, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given that the next release will we Python3.7+, we might as well upgrade some of the syntax, e.g.
or
We can do this using pyupgrade.
Here are the files that can be upgraded:
If you're intereseted in helping out, please choose a batch of 10-15 to run pyupgrade on.
Install pyupgrade with:
Then, run
e.g.
See #36453 for an example PR.
Once this is done, we can add it to pre-commit / CI.
The text was updated successfully, but these errors were encountered: