From c3e494f6cf2fe7de97090193d0a96d4f499083c7 Mon Sep 17 00:00:00 2001 From: Vlad Shcherbina Date: Sat, 18 Aug 2018 01:05:30 +0300 Subject: [PATCH] Replace broken type annotations with type comments Fixes #3826. --- changelog/3826.trivial.rst | 1 + src/_pytest/fixtures.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog/3826.trivial.rst diff --git a/changelog/3826.trivial.rst b/changelog/3826.trivial.rst new file mode 100644 index 00000000000..5354d0df9c0 --- /dev/null +++ b/changelog/3826.trivial.rst @@ -0,0 +1 @@ +Replace broken type annotations with type comments. diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index a6634cd1162..cc8921e6599 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -307,8 +307,8 @@ class FuncFixtureInfo(object): # fixture names specified via usefixtures and via autouse=True in fixture # definitions. initialnames = attr.ib(type=tuple) - names_closure = attr.ib(type="List[str]") - name2fixturedefs = attr.ib(type="List[str, List[FixtureDef]]") + names_closure = attr.ib() # type: List[str] + name2fixturedefs = attr.ib() # type: List[str, List[FixtureDef]] def prune_dependency_tree(self): """Recompute names_closure from initialnames and name2fixturedefs