diff options
author | Ran Benita <ran@unusedvar.com> | 2020-12-20 15:11:01 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-12-20 15:59:06 +0200 |
commit | 69c302479e3f76450f29e7d2de24254d5eda6492 (patch) | |
tree | b5e02c2bb307f32cd8a6c2afbac9d50b16cd7e97 /src/pytest | |
parent | 2ec372df8b987207efc4ad0f33c2f82df5c9e2e5 (diff) | |
download | pytest-69c302479e3f76450f29e7d2de24254d5eda6492.tar.gz |
mark: export pytest.MarkDecorator 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.
Diffstat (limited to 'src/pytest')
-rw-r--r-- | src/pytest/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pytest/__init__.py b/src/pytest/__init__.py index 4b194e0c8..1d5b38ee0 100644 --- a/src/pytest/__init__.py +++ b/src/pytest/__init__.py @@ -23,6 +23,7 @@ from _pytest.logging import LogCaptureFixture from _pytest.main import Session from _pytest.mark import Mark from _pytest.mark import MARK_GEN as mark +from _pytest.mark import MarkDecorator from _pytest.mark import param from _pytest.monkeypatch import MonkeyPatch from _pytest.nodes import Collector @@ -91,6 +92,7 @@ __all__ = [ "main", "mark", "Mark", + "MarkDecorator", "Module", "MonkeyPatch", "Package", |