-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
CLN: Clean-up use of super() in instance methods. #26177
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26177 +/- ##
==========================================
- Coverage 91.98% 91.98% -0.01%
==========================================
Files 175 175
Lines 52371 52371
==========================================
- Hits 48175 48171 -4
- Misses 4196 4200 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26177 +/- ##
==========================================
- Coverage 91.98% 91.98% -0.01%
==========================================
Files 175 175
Lines 52372 52372
==========================================
- Hits 48177 48173 -4
- Misses 4195 4199 +4
Continue to review full report at Codecov.
|
lgtm, will merge after I fixup master. can you do a followup to prohitbit the old style in code-checks (or push to this one ok too) |
I can add that to the follow-up, where I take the rest of |
@topper-123 can you merge master? |
The failure seems unrelated, don't know what's going on:
|
Certainly strange. Looks like it is a result of this PR though. Maybe revert the changes to pandas/_libs/tslibs/strptime.pyx (or other cython modules) and see if the error disappears - could certainly be differences with how Cython handles super calls versus Python |
This error message shows up in #22511 also, so must be something else. If it |
thanks @topper-123 |
Simplifies the use of simple uses of
super
by converting to use python3 idioms. This is a quite big PR, but only deals with convertingsuper(MyClass, self)
tosuper()
so it's very simple.In addition to the uses of
super
dealt with in this PR, there are some more advanced uses ofsuper
in the code base, e.g. in classmethods and usingsuper
to jump to a specific point in the MRO-chain. I'd like to tackle those in a seperate PR in order to keep the the current large PR very simple.