Skip to content

Commit ef62b86

Browse files
authored
Merge pull request #7448 from bluetech/typing-publish
Publish our types
2 parents 36b958c + 2bcad38 commit ef62b86

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
@@ -75,6 +75,10 @@ testing =
7575
requests
7676
xmlschema
7777

78+
[options.package_data]
79+
_pytest = py.typed
80+
pytest = py.typed
81+
7882
[build_sphinx]
7983
source-dir = doc/en/
8084
build-dir = doc/build

src/_pytest/py.typed

Whitespace-only changes.

src/pytest/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)