def METHOD_NAME() -> None:
    class AnIntConfig(Config):
        an_int: int = Field(gt=0, lt=10)
    AnIntConfig(an_int=5)
    with pytest.raises(ValidationError, match="ensure this value is less than 10"):
        AnIntConfig(an_int=10)
    with pytest.raises(ValidationError, match="ensure this value is greater than 0"):
        AnIntConfig(an_int=0)