summaryrefslogtreecommitdiff
path: root/src/_pytest/doctest.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-01-01 14:49:59 +0200
committerRan Benita <ran@unusedvar.com>2020-01-01 15:22:16 +0200
commit4848bbdf9a4480ec85b520c6f3224256f1346679 (patch)
tree16dadb058f096f0c95e96d012b05dbb28cd5b1c9 /src/_pytest/doctest.py
parent466bbbf8e81c682c284954861786e24b42b84ad6 (diff)
downloadpytest-4848bbdf9a4480ec85b520c6f3224256f1346679.tar.gz
Update mypy 0.750 -> 0.761
This fixes some type: ignores due to typeshed update. Newer mypy seem to ignore unannotated functions better, so add a few minor annotations so that existing correct type:ignores make sense.
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 75eac7db6..3475ac9c2 100644
--- a/src/_pytest/doctest.py
+++ b/src/_pytest/doctest.py
@@ -451,7 +451,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():