From 7c11f95fe395d0426db2b2a27185bb370308bebd Mon Sep 17 00:00:00 2001 From: Liam DeVoe Date: Sat, 7 Dec 2024 14:36:39 -0500 Subject: [PATCH] fix hashable comparison --- hypothesis-python/src/hypothesis/strategies/_internal/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypothesis-python/src/hypothesis/strategies/_internal/core.py b/hypothesis-python/src/hypothesis/strategies/_internal/core.py index d2678cc862..be946fdf89 100644 --- a/hypothesis-python/src/hypothesis/strategies/_internal/core.py +++ b/hypothesis-python/src/hypothesis/strategies/_internal/core.py @@ -793,7 +793,7 @@ def text( "The following elements in alphabet are not of length one, " f"which leads to violation of size constraints: {not_one_char!r}" ) - if alphabet in {"ascii", "utf-8"}: + if alphabet in ["ascii", "utf-8"]: warnings.warn( f"st.text({alphabet!r}): it seems like you are trying to use the " f"codec {alphabet!r}. st.text({alphabet!r}) instead generates "