-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature: leading underscore to module imports #309
Conversation
93df471
to
6bc1963
Compare
f076829
to
089a5c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Imports within the functions don't really need leading underscore - they are mostly in splinepy/helpme/create.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can leave function-local-import also this way for now. They are mainly for type checking and we can try to avoid in other PR. Thanks again!
This will cause some conflicts on other PRs (@jzwar, @FSchwar, @clemens-fricke), but other way around would cause bigger conflicts. So, I will merge this first
When will this be merged? Is anything missing still? |
right now |
* added leading underscore * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added leading underscore * direct module import * fixed formatting * bug fixes * Apply suggestions from code review * update contributing --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jaewook Lee <47114801+j042@users.noreply.github.com> Co-authored-by: Jaewook Lee <jaewooklee042@gmail.com>
Overview
Leading underscores were added to the module imports to make them private. This means that they are not accessible from outside the module and can only be used within the module itself.
Addressed issues
#270
Showcase