From 69c302479e3f76450f29e7d2de24254d5eda6492 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 20 Dec 2020 15:11:01 +0200 Subject: 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. --- src/pytest/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pytest') 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", -- cgit v1.2.3