summaryrefslogtreecommitdiff
path: root/src/_pytest/main.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-08-01 13:06:13 +0300
committerRan Benita <ran@unusedvar.com>2020-08-01 20:39:15 +0300
commitbe656dd4e4444acd9600660fc3b6bf3896067dbe (patch)
treeea7998a38648f2397a818ad8f9948d2048e3b631 /src/_pytest/main.py
parent49827adcb9256c9c9c06a25729421dcc3c385edc (diff)
downloadpytest-be656dd4e4444acd9600660fc3b6bf3896067dbe.tar.gz
typing: set disallow_any_generics
This prevents referring to a generic type without filling in its generic type parameters. The FixtureDef typing might need some more refining in the future.
Diffstat (limited to 'src/_pytest/main.py')
-rw-r--r--src/_pytest/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/main.py b/src/_pytest/main.py
index 292ba58e2..c0e1c9d07 100644
--- a/src/_pytest/main.py
+++ b/src/_pytest/main.py
@@ -404,7 +404,7 @@ class Failed(Exception):
@attr.s
-class _bestrelpath_cache(dict):
+class _bestrelpath_cache(Dict[py.path.local, str]):
path = attr.ib(type=py.path.local)
def __missing__(self, path: py.path.local) -> str: