FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Autogenerate Attribute docstrings by harshil21 · Pull Request #5246 · python-telegram-bot/python-telegram-bot · GitHub

Autogenerate Attribute docstrings - #5246

Merged
harshil21 merged 25 commits into
doc-fixesfrom
auto-doc-attr
Jun 16, 2026
Merged

Autogenerate Attribute docstrings#5246
harshil21 merged 25 commits into
doc-fixesfrom
auto-doc-attr

Conversation

harshil21 commented May 26, 2026
edited
Loading

Copy link
Copy Markdown
Member

Closes #5242

Took the time to write a full blown docstring parser to do this. So far I've found it pretty reliable since it caught quite a few missing / malformed docstrings.

One thing I changed: the |tupleclassattrs| and |sequenceclassargs| versionchanged notes were deleted. I did this because they were done for v20.0 and it's been many years since that. That way we can unify the argument and attribute docstring.

I manually checked the docs for most edge cases and confirmed that they are correctly handled. Feel free to build the docs and check a random page's to compare the before and after.


AI assisted disclosure: The tests were >90% written by AI (I looked over all of them, and they were quite satisfactory). It also did some of the parser/insertion logic, which I later fine tuned when I found edge cases / logic errors.

Merge after #5241

harshil21 requested review from Poolitzer and aelkheir May 26, 2026 12:46
harshil21 added the ⚙️ documentation affected functionality: documentation label May 26, 2026
Base automatically changed from auto-doc-raises to doc-fixes May 26, 2026 12:54
harshil21 added this to the v23 milestone Jun 1, 2026
Base automatically changed from doc-fixes to master June 12, 2026 07:46

aelkheir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Apologies for the overdue review! Changes look pretty good to me. I left some minor comments

One thing that's sad is dropping the historical .. versionchanged notes :') but not a big problem git still has them.

Comment thread docs/auxil/attribute_inserter.py Outdated
pull_requests = [
{ uid = "5240", author_uids = ["harshil21", "Poolitzer"] },
{ uid = "5241", author_uids = ["harshil21"] },
{ uid = "5245", author_uids = ["harshil21"] },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
{ uid = "5245", author_uids = ["harshil21"] },
{ uid = "5246", author_uids = ["harshil21"] },

are the other two PRs relevant to this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I will just correct this in the new doc fixes changelog note

Comment thread docs/auxil/bot_insertion.py Outdated
harshil21 changed the base branch from master to doc-fixes June 16, 2026 07:10
harshil21 merged commit 143b645 into doc-fixes Jun 16, 2026
29 of 33 checks passed
harshil21 deleted the auto-doc-attr branch June 16, 2026 13:52
github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⚙️ documentation affected functionality: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL