Skip to content

Commit

Permalink
Export MockType/AsyncMockType for type annotations (#415)
Browse files Browse the repository at this point in the history
Fix #414 

---------

Co-authored-by: Bruno Oliveira <[email protected]>
  • Loading branch information
Kilo59 and nicoddemus authored Mar 21, 2024
1 parent 852116b commit 366966b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Releases
========

UNRELEASED
----------

* `#415 <https://github.com/pytest-dev/pytest-mock/pull/415>`_: ``MockType`` and ``AsyncMockType`` can be imported from ``pytest_mock`` for type annotation purposes.


3.13.0 (2024-03-21)
-------------------

Expand Down
4 changes: 4 additions & 0 deletions src/pytest_mock/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from pytest_mock.plugin import AsyncMockType
from pytest_mock.plugin import MockerFixture
from pytest_mock.plugin import MockType
from pytest_mock.plugin import PytestMockWarning
from pytest_mock.plugin import class_mocker
from pytest_mock.plugin import mocker
Expand All @@ -11,8 +13,10 @@
MockFixture = MockerFixture # backward-compatibility only (#204)

__all__ = [
"AsyncMockType",
"MockerFixture",
"MockFixture",
"MockType",
"PytestMockWarning",
"pytest_addoption",
"pytest_configure",
Expand Down

0 comments on commit 366966b

Please sign in to comment.