def METHOD_NAME() -> None:
    # Pydantic does not like it when you use constr(), but this just sanity checks that
    # we can use it in place of a field
    class AStringConfig(Config):
        a_str: constr(min_length=2, max_length=10)  # type: ignore
    AStringConfig(a_str="foo")
    with pytest.raises(ValidationError, match="ensure this value has at least 2 characters"):
        AStringConfig(a_str="f")
    with pytest.raises(ValidationError, match="ensure this value has at most 10 characters"):
        AStringConfig(a_str="foofoofoofoofoo")