runner: export pytest.CallInfo for typing purposes

The type cannot be constructed directly, but is exported for use in type
annotations, since it is reachable through existing public API.

This also documents `from_call` as public, because at least
pytest-forked uses it, so we must treat it as public already anyway.
This commit is contained in:
Ran Benita
2020-12-26 21:23:23 +02:00
parent bd76042344
commit 96ea867fec
5 changed files with 52 additions and 23 deletions

View File

@@ -758,7 +758,7 @@ Full reference to objects accessible from :ref:`fixtures <fixture>` or :ref:`hoo
CallInfo
~~~~~~~~
.. autoclass:: _pytest.runner.CallInfo()
.. autoclass:: pytest.CallInfo()
:members: