-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Clear up import policy #2671
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
Clear up import policy #2671
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.
Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)
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.
Good changes. Some things we can still change:
-
While at it, we can also rename base.py to telegramobject.py, cause for some reason in rtd the 'bases' section doesn't link is broken (just updated my sphinx to 4.2.0 from 4.0.2 and now this is fixed!), and I suppose telegramobject.py is more explicit.
-
Also
telegram.ext.filters Module
is listed under the 'Handlers' section. Maybe move it up where the rest of telegram.ext is (i.e with Updater and the rest)? -
I noticed
telegramobject.rst
doesn't have:github_url:
, maybe add that?
The broken link is not really related to the file name, but I renamed anyway. see sphinx-doc/sphinx#9026
I moved it there on purpose a while back, because
✔️ |
closes #2468
Some notes:
ext.utils.promise.Promise
was deliberately not moved toext.promise.Promise
because since the removal ofMessageQueue
users should almost never have contact with that class. You can view that at RTDtg.utils.helpers
module into a number of separate modules and moved parts of the contents just to the place where it's actually used. Also added a bunch of additional teststelegram
that are not strictly API relatedTODO:
versionchanged
directivestg.helpers
andtg.utils.helpers
maybe we can find a better name for one of the two to avoid confusion …Checklist for PRs
.. versionadded:: version
,.. versionchanged:: version
or.. deprecated:: version
to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes) -- This can probably still be improved