You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,23 @@
1
+
3.3.0 (2020-08-21)
2
+
------------------
3
+
4
+
* ``pytest-mock`` now includes inline type annotations and exposes them to user programs. The ``mocker`` fixture returns ``pytest_mock.MockerFixture``, which can be used to annotate your tests:
5
+
6
+
.. code-block:: python
7
+
8
+
from pytest_mock import MockerFixture
9
+
10
+
deftest_foo(mocker: MockerFixture) -> None:
11
+
...
12
+
13
+
The type annotations were developed against mypy version ``0.782``, the
14
+
minimum version supported at the moment. If you run into an error that you believe to be incorrect, please open an issue.
15
+
16
+
Many thanks to `@staticdev`_ for providing the initial patch (`#199`_).
0 commit comments