2024-12-01 23:53:12 +03:00

11 lines
209 B
Python

from hypothesis import (
strategies as st,
)
from hypothesis.strategies import (
SearchStrategy,
)
def hexstr_strategy() -> SearchStrategy[str]:
return st.from_regex(r"\A(0[xX])?[0-9a-fA-F]*\Z")