Skip to content

Commit 6bb31c9

Browse files
committed
Publish our types
1 parent 64dd700 commit 6bb31c9

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

changelog/3342.feature.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pytest now includes inline type annotations and exposes them to user programs.
2+
Most of the user-facing API is covered, as well as internal code.
3+
4+
If you are running a type checker such as mypy on your tests, you may start
5+
noticing type errors indicating incorrect usage. If you run into an error that
6+
you believe to be incorrect, please let us know in an issue.
7+
8+
The types were developed against mypy version 0.780. Older versions may work,
9+
but we recommend using at least this version. Other type checkers may work as
10+
well, but they are not officially verified to work by pytest yet.

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ setup_requires =
5959
setuptools-scm
6060
zip_safe = no
6161

62+
[options.package_data]
63+
pytest = py.typed
64+
_pytest = py.typed
65+
6266
[options.entry_points]
6367
console_scripts =
6468
pytest=pytest:console_main

src/_pytest/py.typed

Whitespace-only changes.

src/pytest/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)