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

gh-445: place all public function in __all__ #446

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Conversation

paddyroddy
Copy link
Member

Closes #445. Looks like this was missed in #221. All public functions need to be in all. This will address the comments from #442.

@paddyroddy paddyroddy added the bug Something isn't working label Nov 21, 2024
@paddyroddy paddyroddy self-assigned this Nov 21, 2024
@@ -19,7 +19,6 @@
transform_cls,
)
from glass.galaxies import (
_kappa_ia_nla,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to remove from here until it's time to tackle #411.

@ntessore
Copy link
Collaborator

Excellent, sorry I missed that. Let's follow PEP8 and keep __all__ at the top of the module.

@paddyroddy
Copy link
Member Author

Excellent, sorry I missed that. Let's follow PEP8 and keep __all__ at the top of the module.

Always assumed it had to go after the imports, but clearly that isn't the case. Have changed.

@paddyroddy paddyroddy merged commit 09b14bd into main Nov 21, 2024
16 checks passed
@paddyroddy paddyroddy deleted the paddy/issue-445 branch November 21, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should we fix the main namespace so that mypy understands what we are importing?
2 participants