Conversation
harshil21
left a comment
There was a problem hiding this comment.
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