Merge pull request #7448 from bluetech/typing-publish

Publish our types
This commit is contained in:
Ran Benita 2020-07-05 16:51:26 +03:00 committed by GitHub
commit ef62b865f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -75,6 +75,10 @@ testing =
requests requests
xmlschema xmlschema
[options.package_data]
_pytest = py.typed
pytest = py.typed
[build_sphinx] [build_sphinx]
source-dir = doc/en/ source-dir = doc/en/
build-dir = doc/build build-dir = doc/build

0
src/_pytest/py.typed Normal file
View File

0
src/pytest/py.typed Normal file
View File