Skip to content

Commit

Permalink
fix hashable comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Dec 7, 2024
1 parent 54777d6 commit 7c11f95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 7c11f95

Please sign in to comment.