Skip to content

Commit

Permalink
Publish our types
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Jul 4, 2020
1 parent 64dd700 commit 2bcad38
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions changelog/3342.feature.rst
@@ -0,0 +1,10 @@
pytest now includes inline type annotations and exposes them to user programs.
Most of the user-facing API is covered, as well as internal code.

If you are running a type checker such as mypy on your tests, you may start
noticing type errors indicating incorrect usage. If you run into an error that
you believe to be incorrect, please let us know in an issue.

The types were developed against mypy version 0.780. Older versions may work,
but we recommend using at least this version. Other type checkers may work as
well, but they are not officially verified to work by pytest yet.
4 changes: 4 additions & 0 deletions setup.cfg
Expand Up @@ -75,6 +75,10 @@ testing =
requests
xmlschema

[options.package_data]
_pytest = py.typed
pytest = py.typed

[build_sphinx]
source-dir = doc/en/
build-dir = doc/build
Expand Down
Empty file added src/_pytest/py.typed
Empty file.
Empty file added src/pytest/py.typed
Empty file.

0 comments on commit 2bcad38

Please sign in to comment.