Replace broken type annotations with type comments

Fixes #3826.
This commit is contained in:
Vlad Shcherbina 2018-08-18 01:05:30 +03:00
parent 7d4c4c66d4
commit c3e494f6cf
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
Replace broken type annotations with type comments.

View File

@ -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