Contributor
TelegramObject.__getitem__now raisesKeyErrorinstead of returningNone, and a special case is made forobj['from']to look upobj['from_user'].- Removed
__getitem__override fromMessage - Test for Message changed to check for
KeyErrorinstead ofNone.
Checklist for PRs
- Added
.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstrings for user facing changes (for methods/class descriptions, arguments and attributes) - Created new or adapted existing unit tests
- Added myself alphabetically to
AUTHORS.rst(optional)
Closed
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a pre-commit test failing. Can you add a pylint ignore on that line? see the other places in the code on how to add a pylint ignore.
Member
There's a pre-commit test failing. Can you add a pylint ignore on that line? see the other places in the code on how to add a pylint ignore.
rather just do what pylint suggests to do ;)
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I left a bit of nitpicking below :)
Contributor Author
A lot of things came up at school and job. If someone wants to clean up and finish, feel free to do so :)