We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99490c1 commit 38ee9d3Copy full SHA for 38ee9d3
hypothesis-python/src/hypothesis/extra/ghostwriter.py
@@ -603,8 +603,7 @@ def _imports_for_strategy(strategy):
603
):
604
return {
605
imp
606
- for arg in strategy._LazyStrategy__args
607
- + strategy._LazyStrategy__kwargs.values
+ for arg in set(strategy._LazyStrategy__args) | set(strategy._LazyStrategy__kwargs.values())
608
for imp in _imports_for_object(arg)
609
}
610
elif _get_module(strategy.function).startswith("hypothesis.extra."):
0 commit comments