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 6bb31c9
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ setup_requires =
setuptools-scm
zip_safe = no

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

[options.entry_points]
console_scripts =
pytest=pytest:console_main
Expand Down
Empty file added src/_pytest/py.typed
Empty file.
Empty file added src/pytest/py.typed
Empty file.

0 comments on commit 6bb31c9

Please sign in to comment.