Skip to content

Commit

Permalink
Fix import finding
Browse files Browse the repository at this point in the history
Use function call instead of function
Switch to using sets
  • Loading branch information
JensHeinrich authored and JensHeinrich committed Feb 16, 2023
1 parent 99490c1 commit 38ee9d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hypothesis-python/src/hypothesis/extra/ghostwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,7 @@ def _imports_for_strategy(strategy):
):
return {
imp
for arg in strategy._LazyStrategy__args
+ strategy._LazyStrategy__kwargs.values
for arg in set(strategy._LazyStrategy__args) | set(strategy._LazyStrategy__kwargs.values())
for imp in _imports_for_object(arg)
}
elif _get_module(strategy.function).startswith("hypothesis.extra."):
Expand Down

0 comments on commit 38ee9d3

Please sign in to comment.