diff options
author | Ran Benita <ran@unusedvar.com> | 2020-12-20 15:36:24 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-12-20 15:59:20 +0200 |
commit | 6aa4d1c7ab968aecf44ad89e568a4515bd7e5343 (patch) | |
tree | 267cac94cd4d8200751ac7e4987393da0c1d3b2a /changelog/7469.feature.rst | |
parent | 69c302479e3f76450f29e7d2de24254d5eda6492 (diff) | |
download | pytest-6aa4d1c7ab968aecf44ad89e568a4515bd7e5343.tar.gz |
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.
Diffstat (limited to 'changelog/7469.feature.rst')
-rw-r--r-- | changelog/7469.feature.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog/7469.feature.rst b/changelog/7469.feature.rst index 66113aa58..81f93d1f7 100644 --- a/changelog/7469.feature.rst +++ b/changelog/7469.feature.rst @@ -4,6 +4,7 @@ The newly-exported types are: - ``pytest.Mark`` for :class:`marks <pytest.Mark>`. - ``pytest.MarkDecorator`` for :class:`mark decorators <pytest.MarkDecorator>`. +- ``pytest.MarkGenerator`` for the :class:`pytest.mark <pytest.MarkGenerator>` singleton. Constructing them directly is not supported; they are only meant for use in type annotations. Doing so will emit a deprecation warning, and may become a hard-error in pytest 7.0. |