-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
core: add __all__
statements in sopel fix #765
#1582
Conversation
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 made some easy tweaks. Adding documentation is a bit more than just adding __all__
statements, but I'm not going to complain about adding docstrings, like ever!
@Exirel I test-rendered the Sphinx docs to make sure your space-less Also, I found a stray "arround" that I missed when reviewing earlier. :/ |
Oh yes, you're right. I don't object, quite the contrary, it's a good idea.
Will fix that. |
@dgw I added a commit where I added |
It's still there. :/ Line 836 in 87a1ca3
Aside from that, I'm ready to ✔️ and . |
With some docstring fix by dgw Co-Authored-By: dgw <dgw@technobabbl.es>
I forgot, sorry. Should be good now. https://github.com/sopel-irc/sopel/pull/1582/files#diff-1cf03588484fddc0a6c0f9600a2d330cR869 |
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.
Yep, it's good now.
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'm glad I gave this one more look. We could have broken some plugins that were doing from sopel.formatting import *
and then trying to use colors.NAME
s.
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.
Re-approved ✔️
Any further issues that slipped by will be caught by some brave soul running Sopel from source. 😁
The
__all__
statement in a Python module is used at import time whenfrom module import *
is used to expose only a defined list of object to be imported in thelocals()
environment of the importer.Even though the Python documentation talks about "sub-modules" to import, it is widely used to define a set of names to import instead (being objects, functions, or sub-modules).