Skip to content

Commit 059c75f

Browse files
committed
Add py.typed now the codebase is typed
This supports PEP 561 and allows type checkers such as mypy to understand that h11 includes type hinting.
1 parent 96c0a33 commit 059c75f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include LICENSE.txt README.rst notes.org tiny-client-demo.py
1+
include LICENSE.txt README.rst notes.org tiny-client-demo.py h11/py.typed
22
recursive-include docs *
33
recursive-include h11/tests/data *
44
recursive-include fuzz *

h11/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Marker

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
author_email="[email protected]",
1414
license="MIT",
1515
packages=find_packages(),
16+
package_data={'h11': ['py.typed']},
1617
url="https://github.com/python-hyper/h11",
1718
# This means, just install *everything* you see under h11/, even if it
1819
# doesn't look like a source file, so long as it appears in MANIFEST.in:

0 commit comments

Comments
 (0)