Skip to content
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

MAINT: cleanup outer scope shadowing #418

Merged
merged 4 commits into from
Feb 8, 2023

Conversation

bsipocz
Copy link
Member

@bsipocz bsipocz commented Feb 8, 2023

Cleanup redefining outer-scope variables. I've also added consistency in imports from astropy as some of them were causing these redefinitions.

There are still a few redefined-builtin cases, but fixing those would involve API modifications (as it involves arguments named e.g. format, range, id)

closes #390

(there is still a ~2000 line long pylint report, most of which are cosmetic, rather than functional suggestions, but some may touch real issues (e.g. pyvo/dal/tests/test_sia2_remote.py lists all attributes without any asserts, so those lines would trick tools like coverage to think the attributes are covered by tests).

@bsipocz bsipocz added this to the v1.4.1 milestone Feb 8, 2023
@bsipocz bsipocz marked this pull request as ready for review February 8, 2023 01:34
@bsipocz bsipocz merged commit 81a50d7 into astropy:main Feb 8, 2023
@bsipocz
Copy link
Member Author

bsipocz commented Feb 8, 2023

I went ahead with the merge as given the large number of files touched in this PR, I expect this may cause some conflicts with the other works (though all of those should be very trivial to resolve)

@andamian
Copy link
Contributor

andamian commented Feb 8, 2023

Thanks for doing it!

@bsipocz
Copy link
Member Author

bsipocz commented Feb 8, 2023

No worries, I'm just going through some prep stuff to ultimately make the SIA2 and cloud stuff work.

bsipocz added a commit that referenced this pull request Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAINT: avoid overwriting variables
2 participants