mark: export pytest.MarkGenerator 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 commit is contained in:
Ran Benita
2020-12-20 15:36:24 +02:00
parent 69c302479e
commit 6aa4d1c7ab
6 changed files with 14 additions and 7 deletions

View File

@@ -24,6 +24,7 @@ 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 MarkGenerator
from _pytest.mark import param
from _pytest.monkeypatch import MonkeyPatch
from _pytest.nodes import Collector
@@ -93,6 +94,7 @@ __all__ = [
"mark",
"Mark",
"MarkDecorator",
"MarkGenerator",
"Module",
"MonkeyPatch",
"Package",