Skip to content

Commit bbf8466

Browse files
authored
Merge pull request #9279 from jdufresne/py.typed
Distribute and install py.typed to provide type information
2 parents c188d1f + 09e8fa9 commit bbf8466

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def get_version(rel_path):
6565
exclude=["contrib", "docs", "tests*", "tasks"],
6666
),
6767
package_data={
68+
"pip": ["py.typed"],
6869
"pip._vendor": ["vendor.txt"],
6970
"pip._vendor.certifi": ["*.pem"],
7071
"pip._vendor.requests": ["*.pem"],

src/pip/py.typed

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pip is a command line program. While it is implemented in Python, and so is
2+
available for import, you must not use pip's internal APIs in this way. Typing
3+
information is provided as a convenience only and is not a gaurantee. Expect
4+
unannounced changes to the API and types in releases.

0 commit comments

Comments
 (0)