summaryrefslogtreecommitdiff
path: root/src/_pytest/doctest.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2019-12-02 18:01:08 +0200
committerDaniel Hahler <git@thequod.de>2020-01-14 06:31:41 +0100
commit090e26051738314317fbe7e6fc603e1cf39d6c87 (patch)
treed16c741fa1c6307374182019426ef24c19868f25 /src/_pytest/doctest.py
parent90740007a8b1758c8c01d4afbbdec5b03c5ddff2 (diff)
downloadpytest-090e26051738314317fbe7e6fc603e1cf39d6c87.tar.gz
master: update mypy 0.740 -> 0.761
(cherry picked from commit 16ff9f591e38d1f2a79441f177130b1d89098c6e) (cherry picked from commit 4848bbdf9a4480ec85b520c6f3224256f1346679)
Diffstat (limited to 'src/_pytest/doctest.py')
-rw-r--r--src/_pytest/doctest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/_pytest/doctest.py b/src/_pytest/doctest.py
index c81f0bfd4..488e91ddb 100644
--- a/src/_pytest/doctest.py
+++ b/src/_pytest/doctest.py
@@ -445,7 +445,9 @@ class DoctestModule(pytest.Module):
obj = getattr(obj, "fget", obj)
return doctest.DocTestFinder._find_lineno(self, obj, source_lines)
- def _find(self, tests, obj, name, module, source_lines, globs, seen):
+ def _find(
+ self, tests, obj, name, module, source_lines, globs, seen
+ ) -> None:
if _is_mocked(obj):
return
with _patch_unwrap_mock_aware():