From c19d7c4e6dde17c9e082c8ba63647a7e525df10c Mon Sep 17 00:00:00 2001 From: Peter Law Date: Tue, 21 Jul 2020 22:24:32 +0100 Subject: [PATCH] Let consumers know that we have type annotations As well as the type stubs, this includes both the py.typed flag file (for tools) and the classifier (for people). --- parso/py.typed | 0 setup.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 parso/py.typed diff --git a/parso/py.typed b/parso/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index 443b2a7..a714888 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup(name='parso', keywords='python parser parsing', long_description=readme, packages=find_packages(exclude=['test']), - package_data={'parso': ['python/grammar*.txt']}, + package_data={'parso': ['python/grammar*.txt', 'py.typed', '*.pyi', '**/*.pyi']}, platforms=['any'], python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', classifiers=[ @@ -44,6 +44,7 @@ setup(name='parso', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Text Editors :: Integrated Development Environments (IDE)', 'Topic :: Utilities', + 'Typing :: Typed', ], extras_require={ 'testing': [