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/debugging.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/debugging.py')
-rw-r--r-- | src/_pytest/debugging.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py index 5dda4b8d7..69e6b4dd4 100644 --- a/src/_pytest/debugging.py +++ b/src/_pytest/debugging.py @@ -3,7 +3,10 @@ import argparse import functools import sys import types +from typing import Any +from typing import Callable from typing import Generator +from typing import List from typing import Tuple from typing import Union @@ -91,7 +94,7 @@ class pytestPDB: _pluginmanager = None # type: PytestPluginManager _config = None # type: Config - _saved = [] # type: list + _saved = [] # type: List[Tuple[Callable[..., None], PytestPluginManager, Config]] _recursive_debug = 0 _wrapped_pdb_cls = None @@ -274,7 +277,7 @@ class pytestPDB: class PdbInvoke: def pytest_exception_interact( - self, node: Node, call: "CallInfo", report: BaseReport + self, node: Node, call: "CallInfo[Any]", report: BaseReport ) -> None: capman = node.config.pluginmanager.getplugin("capturemanager") if capman: |