diff options
author | Ran Benita <ran@unusedvar.com> | 2020-08-01 13:06:13 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-08-01 20:39:15 +0300 |
commit | be656dd4e4444acd9600660fc3b6bf3896067dbe (patch) | |
tree | ea7998a38648f2397a818ad8f9948d2048e3b631 /src/_pytest/main.py | |
parent | 49827adcb9256c9c9c06a25729421dcc3c385edc (diff) | |
download | pytest-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.py | 2 |
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: |