2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 06:16:06 +00:00

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
2 changed files with 3 additions and 0 deletions

View File

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