Skip to content

Commit

Permalink
Merge pull request #3827 from Vlad-Shcherbina/funcfixtureinfo-type-hints
Browse files Browse the repository at this point in the history
Replace broken type annotations with type comments
  • Loading branch information
nicoddemus authored Aug 18, 2018
2 parents 2fe824b + c3e494f commit 29975e5
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 29975e5

Please sign in to comment.