You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I touched a lot of super calls in #6629 and #6613 but there are several remaining occurences that haven't been using the current class as first argument and/or the "bound argument" (first argument of the method) as second argument.
I believe lots of them are actually bugs but some of these look intentional. It could be worthwhile to revisit the remaining ones, just to exclude potential bugs and in case it was accidental to remove the obsolete arguments.
I've removed the package-novice tag, as for this one has to have some idea about the intentions for those calls, as @MSeifert04 said above they may very well be a bug or there for a reason.
import pathlib
import re
astropy_dir = ...
for filepath in pathlib.Path(astropy_dir).glob('**/*.py'):
for lineno, line in enumerate(filepath.open(encoding='utf-8')):
if re.search(r'super\(\w', line):
print(filepath.relative_to(astropy_dir), lineno)
Activity
pllim commentedon Sep 30, 2017
Do you happen to have notes on where the remaining ones are?
MSeifert04 commentedon Sep 30, 2017
Not sure if that's still correct but I have this list:
I haven't touched the
externandtestsdirectories (not sure why I haven't checked tests butexternprobably shouldn't be changed at all).bsipocz commentedon Sep 30, 2017
I've removed the package-novice tag, as for this one has to have some idea about the intentions for those calls, as @MSeifert04 said above they may very well be a bug or there for a reason.
MSeifert04 commentedon Sep 30, 2017
I also found the script:
pllim commentedon Sep 30, 2017
Okay, retagged to "expert" (but for an expert, shouldn't take long to determine whether it is bug or not, so also modified the "effort" tag).
mhvk commentedon Dec 22, 2017
Removing milestone -- not sure what we can do right now. Would be good to update the list with calls that have not been checked.