Skip to content

Commit

Permalink
locally ignore undefined attribute for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Jan 3, 2024
1 parent 699850f commit 9e67f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ def _execute_once_for_engine(self, data: ConjectureData) -> None:
# path for test runs that fail.
if isinstance(e, TypeError) and "SearchStrategy" in str(e):
try:
suggestion = data._sampled_from_all_strategies_elements_message
suggestion = data._sampled_from_all_strategies_elements_message # type: ignore[attr-defined]
except AttributeError:
pass
else:
Expand Down

0 comments on commit 9e67f68

Please sign in to comment.