Add py.typed file for enhanced type hinting (#838)

Fixes #781

* fix: add py.typed file

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

* chore: add py.typed to package_data in setup.py

* Style fixes

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
This commit is contained in:
Pietro De Nicolao 2022-01-29 13:39:25 +01:00 committed by GitHub
parent b1250e6575
commit 3e79d7dfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

0
pyrogram/py.typed Normal file
View File

View File

@ -172,6 +172,9 @@ setup(
"Documentation": "https://docs.pyrogram.org", "Documentation": "https://docs.pyrogram.org",
}, },
python_requires="~=3.6", python_requires="~=3.6",
package_data = {
"pyrogram": ["py.typed"],
},
packages=find_packages(exclude=["compiler*", "tests*"]), packages=find_packages(exclude=["compiler*", "tests*"]),
zip_safe=False, zip_safe=False,
install_requires=requires, install_requires=requires,