From 3e79d7dfce9a4b259a2ee1833eb5b0d47560e9ba Mon Sep 17 00:00:00 2001 From: Pietro De Nicolao Date: Sat, 29 Jan 2022 13:39:25 +0100 Subject: [PATCH] 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> --- pyrogram/py.typed | 0 setup.py | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 pyrogram/py.typed diff --git a/pyrogram/py.typed b/pyrogram/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py index 1a24654c..66ede506 100644 --- a/setup.py +++ b/setup.py @@ -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,