Skip to content

Commit

Permalink
Replace broken type annotations with type comments
Browse files Browse the repository at this point in the history
Fixes #3826.
  • Loading branch information
Vlad-Shcherbina committed Aug 17, 2018
1 parent 7d4c4c6 commit c3e494f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/3826.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace broken type annotations with type comments.
4 changes: 2 additions & 2 deletions src/_pytest/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3e494f

Please sign in to comment.