Merge pull request #3827 from Vlad-Shcherbina/funcfixtureinfo-type-hints

Replace broken type annotations with type comments
This commit is contained in:
Bruno Oliveira 2018-08-18 12:54:47 -03:00 committed by GitHub
commit 29975e5b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 # fixture names specified via usefixtures and via autouse=True in fixture
# definitions. # definitions.
initialnames = attr.ib(type=tuple) initialnames = attr.ib(type=tuple)
names_closure = attr.ib(type="List[str]") names_closure = attr.ib() # type: List[str]
name2fixturedefs = attr.ib(type="List[str, List[FixtureDef]]") name2fixturedefs = attr.ib() # type: List[str, List[FixtureDef]]
def prune_dependency_tree(self): def prune_dependency_tree(self):
"""Recompute names_closure from initialnames and name2fixturedefs """Recompute names_closure from initialnames and name2fixturedefs