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
Add py.typed file #838
Merged
Merged
Add py.typed file #838
Conversation
This file contains 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
Comply with PEP 561 and enable type checkers. Fixes #781.
alissonlauffer
suggested changes
Jan 2, 2022
Apparently you forgot to add the package_data entry to setup.py:
https://www.python.org/dev/peps/pep-0561/#packaging-type-information
|
@alissonlauffer fixed, thanks! |
AsmSafone
added a commit
to AsmSafone/pyrogram
that referenced
this issue
Feb 1, 2022
Fix caption being "None" when passing None (pyrogram#879) Add approve() and decline() bound methods to ChatJoinRequest (pyrogram#863) * Bound method approve() and decline() * Style fixes Add placeholder in ForceReply & ReplyKeyboardMarkup (pyrogram#717) * Added placeholder * Fix docs Fix accessing non-existent attribute Closes pyrogram#865 Add py.typed file for enhanced type hinting (pyrogram#838) Fixes pyrogram#781 * fix: add py.typed file Comply with PEP 561 and enable type checkers. Fixes pyrogram#781. * chore: add py.typed to package_data in setup.py * Style fixes Add video_start_ts parameter to set_chat_photo (pyrogram#770) * Add `video_start_ts` parameter to `set_chat_photo` * Docstrings update Update API schema to Layer 137 Fixed error while unparsing consecutive entities (pyrogram#885) Do not handle messages with a pending ack Update message for automatic sleeps Update Pyrogram to v1.3.7 Switch from issue templates to issue forms Update emoji.py Document ApiCallError RPC error Co-Authored-By: ArUn Pt <46273006+CW4RR10R@users.noreply.github.com> Co-Authored-By: Dan <14043624+delivrance@users.noreply.github.com>
AsmSafone
added a commit
to AsmSafone/pyrogram
that referenced
this issue
Mar 2, 2022
Update Pyrogram to v1.3.2 Update Pyrogram to v.1.3.5 Fix core types and compiler (pyrogram#871) - Add missing ID to FutureSalts - Have vector flags read to None instead of [] for non-existent lists Remove unnecessary method call in get_media_group (pyrogram#860) Minor style fix Update Pyrogram to v1.3.3 Revert reading non-existent flag vectors from None to [] Update Pyrogram to v1.3.4 Use a proper condition check when dealing with flag vectors When reading flag vectors, non-existent vectors are being translated to [] (empty list). When writing them, the flag condition was strictly checking for None and an empty list [] would result in an empty vector being serialized, which should not happen. Related to pyrogram#871. Added iter_messages() convenience method does the same as repeatedly calling :method:`~pyrogram.Client.get_messages` in a loop Better handling of expiring server salts Update Pyrogram to v1.3.6 Fix spoiler html unparsing (pyrogram#862) - The current spoiler implementaion unparses both strikethrough and spoiler tags with <s>, making them indistinguishable Merge branch 'master' of https://github.com/pyrogram/pyrogram Fix caption being "None" when passing None (pyrogram#879) Add approve() and decline() bound methods to ChatJoinRequest (pyrogram#863) * Bound method approve() and decline() * Style fixes Add placeholder in ForceReply & ReplyKeyboardMarkup (pyrogram#717) * Added placeholder * Fix docs Fix accessing non-existent attribute Closes pyrogram#865 Add py.typed file for enhanced type hinting (pyrogram#838) Fixes pyrogram#781 * fix: add py.typed file Comply with PEP 561 and enable type checkers. Fixes pyrogram#781. * chore: add py.typed to package_data in setup.py * Style fixes Add video_start_ts parameter to set_chat_photo (pyrogram#770) * Add `video_start_ts` parameter to `set_chat_photo` * Docstrings update Update API schema to Layer 137 Fixed error while unparsing consecutive entities (pyrogram#885) Do not handle messages with a pending ack Update message for automatic sleeps Update Pyrogram to v1.3.7 Switch from issue templates to issue forms Update emoji.py Document ApiCallError RPC error Add ChatJoinRequest bound methods docs Update API schema to Layer 138 Add support for video stickers Add Sticker.is_video attribute Update Pyrogram to v1.4.0 Fix entities unparsing in other scenarios (pyrogram#892) Update Pyrogram to v1.4.1 createStickerSet Update Pyrogram to v1.4.7 Improve stability in case of connection failures Do not consume async gens, turn them to gens instead Update Pyrogram to v1.4.2 Add missing await keyword (pyrogram#898) Update Pyrogram to v1.4.3 Always try to reconnect within Connection Update Pyrogram to v1.4.4 Initialize session on reconnection Update Pyrogram to v.1.4.5 Revert some of the last changes Make Connection.send() raise the actual exception Update Pyrogram to v1.4.6 Revert "Make Connection.send() raise the actual exception" This reverts commit ed2db45. Display a more meaningful error message Fix custom List __repr__ (pyrogram#901) Add 406 CHANNEL_PRIVATE error (pyrogram#899) Add 400 CHANNEL_ADD_INVALID error (pyrogram#894) * Add RPC Error: CHANNEL_ADD_INVALID * Update 400_BAD_REQUEST.tsv Add reply_to_message_id and reply_to_top_message_id to Message Update Filters.reply to check for Message.reply_to_message_id Add 400 STICKERSET_NOT_MODIFIED error Add 400 STICKER_VIDEO_NOWEBM Respect `file_name` if file passed is a file object (pyrogram#912) Fixes pyrogram#911 Fix docstring for `message.reply_photo` (pyrogram#903) Update copyright year Update Pyrogram to v1.3.0 Update copyright year Fix typo in OpenCollective link (pyrogram#856) Add missing parameter protect_content (pyrogram#859) Update Pyrogram to v1.3.1 Fix can_send_other_messages permission being inverted Fixes pyrogram#868 Co-Authored-By: ArUn Pt <46273006+CW4RR10R@users.noreply.github.com> Co-Authored-By: Dan <14043624+delivrance@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.


Comply with PEP 561 and enable type checkers such as Mypy on the library.
Fixes #781.