-
Notifications
You must be signed in to change notification settings - Fork 6k
Supercharge TelegramObject.to_dict
#3353
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
Conversation
Bibo-Joshi
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.
Nice, and it's not even fridy 🥳 Could you also extend the to_dict tests to make sure that the recursive setting now properly extends to the (nested) lists?
This is already tested in the classes which have those, e.g. |
Bibo-Joshi
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.
DS failure is unrelated. When the tests pass, this LGTM :)
Moves the logic of
TO.to_dictin subclasses toTelegramObjectitself, which was mainly dealing with sequences and converting datetimes to timestamps.Checklist for PRs
Added.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)Added new classes & modules to the docs and all suitable__all__s