Skip to content

Commit e40483c

Browse files
authored
Add py.typed marker file (#342)
Currently `python-snap7` includes type annotations, but these are ignored when type-checking an application that uses this library. By including the `py.typed` marker file in the wheel, type checkers like `mypy` can check whether applications call `python-snap7` with the correct types. https://www.python.org/dev/peps/pep-0561/#packaging-type-information
1 parent 2e7e366 commit e40483c

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def read(fname):
3535
author_email='[email protected]',
3636
url='https://github.com/gijzelaerr/python-snap7',
3737
packages=find_packages(),
38+
package_data={'snap7': ['py.typed']},
3839
license='MIT licence',
3940
long_description=read('README.rst'),
4041
scripts=['snap7/bin/snap7-server.py'],

snap7/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)