X Tutup
The Wayback Machine - https://web.archive.org/web/20220412215401/https://github.com/pyrogram/pyrogram/pull/838
Skip to content
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 3 commits into from Jan 29, 2022
Merged

Add py.typed file #838

merged 3 commits into from Jan 29, 2022

Conversation

Copy link
Contributor

@pietrodn pietrodn commented Dec 26, 2021

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

Fixes #781.

Comply with PEP 561 and enable type checkers.
Fixes #781.
Copy link
Contributor

@alissonlauffer alissonlauffer left a comment

Apparently you forgot to add the package_data entry to setup.py:

https://www.python.org/dev/peps/pep-0561/#packaging-type-information

@pietrodn
Copy link
Contributor Author

@pietrodn pietrodn commented Jan 3, 2022

@alissonlauffer fixed, thanks!

@delivrance delivrance merged commit 3e79d7d into pyrogram:master Jan 29, 2022
15 checks passed
@pietrodn pietrodn deleted the fix/py.typed branch Jan 29, 2022
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
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
X Tutup