Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish our types #7448

Merged
merged 1 commit into from
Jul 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.