-
Notifications
You must be signed in to change notification settings - Fork 6k
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 :)
harshil21
left a comment
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 Moduleis 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.rstdoesn'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.Promisewas deliberately not moved toext.promise.Promisebecause since the removal ofMessageQueueusers should almost never have contact with that class. You can view that at RTDtg.utils.helpersmodule 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 teststelegramthat are not strictly API relatedTODO:
versionchangeddirectivestg.helpersandtg.utils.helpersmaybe we can find a better name for one of the two to avoid confusion …Checklist for PRs
.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes) -- This can probably still be improved