def METHOD_NAME(param_field: str) -> None:
    @get("/{my_key:str}")
    def handler(my_key: str = Parameter(**{param_field: "my_key"})) -> None:  # type: ignore[arg-type]
        pass
    with pytest.raises(ImproperlyConfiguredException):
        Litestar([handler])