From 9e67f68637d0bd6ce9be13dfcb11b081eda20296 Mon Sep 17 00:00:00 2001 From: Vince Reuter Date: Wed, 3 Jan 2024 18:35:59 +0100 Subject: [PATCH] locally ignore undefined attribute for mypy --- hypothesis-python/src/hypothesis/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypothesis-python/src/hypothesis/core.py b/hypothesis-python/src/hypothesis/core.py index 36ce49bdb1..d49f535462 100644 --- a/hypothesis-python/src/hypothesis/core.py +++ b/hypothesis-python/src/hypothesis/core.py @@ -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: