-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix from attribute #2719
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
Fix from attribute #2719
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.
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 ;) |
Addressed your comments 😄 |
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.
Thanks for the PR! I left a bit of nitpicking below :)
@SimonDamberg are you still interested in finishing the PR? :) |
A lot of things came up at school and job. If someone wants to clean up and finish, feel free to do so :) |
# Conflicts: # tests/test_conversationhandler.py
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Thanks for getting this started @SimonDamberg :) |
TelegramObject.__getitem__
now raisesKeyError
instead of returningNone
, and a special case is made forobj['from']
to look upobj['from_user']
.__getitem__
override fromMessage
KeyError
instead ofNone
.Checklist for PRs
.. versionadded:: version
,.. versionchanged:: version
or.. deprecated:: version
to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)AUTHORS.rst
(optional)