config: expose Config for typing purposes

This type is used in hooks and fixtures.

The constructor is publicly documented so is not marked private.
This commit is contained in:
Ran Benita
2021-05-24 11:45:07 +03:00
parent c198a7a67e
commit 88d84a5791
11 changed files with 37 additions and 32 deletions

View File

@@ -970,7 +970,7 @@ class Metafunc:
#: Access to the underlying :class:`_pytest.python.FunctionDefinition`.
self.definition = definition
#: Access to the :class:`_pytest.config.Config` object for the test session.
#: Access to the :class:`pytest.Config` object for the test session.
self.config = config
#: The module object where the test function is defined in.