-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Fix method signatures and expand test_official
#2643
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
Also update type hint: Any -> object
Removed __hash__ of VoiceChatParticipantsInvited. Also more Any->object
didn't commit that weird
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 PR! Regarding your notes:
- If you like to, you can remove the ChatMember args & attributes here already. Deprecation: v14 #2346 was split up into mutliple PRs by now anyway. IISC that should also simplify your helper routines for
test_chatmember
a bit. - What exactly is your question about
ChatMember.de_json
? IISC you only changed the tests, not the actual implementation - I left a note about
VCPI.__hash__
:)
Yes, I didn't change the implementation per se. I just wanted to confirm that |
Also removed unused code and improved a few things
Closes #2367
Notes:
ChatMember
yet as that's part of Deprecation: v14 #2346. But it's been effectively removed. (Edit: now removed.)__hash__()
ofVoiceChatParticipantsInvited
since its attribute is actually optional. (Edit: added it back)de_json
ofChatMember*
correctly?Tests:
test_official
now scans if argument if required or not.