Skip to content

Commit

Permalink
Merge pull request #7448 from bluetech/typing-publish
Browse files Browse the repository at this point in the history
Publish our types
  • Loading branch information
bluetech authored Jul 5, 2020
2 parents 36b958c + 2bcad38 commit ef62b86
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 @@ -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 ef62b86

Please sign in to comment.