PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.32k stars 1.5k forks source link

handle join edge case in `ParameterTypeError.from_validation_error` #14419

Closed zzstoatzz closed 2 hours ago

zzstoatzz commented 2 days ago

closes #14406

handles the case where an loc item might be an int, when you are referring an index in a list input type

  File "/home/nmclean/.cache/pypoetry/virtualenvs/global-calculator-UYA1GDje-py3.11/lib/python3.11/site-packages/prefect/exceptions.py", line 181, in <listcomp>
    bad_params = [f'{".".join(err["loc"])}: {err["msg"]}' for err in exc.errors()]
                     ^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, int found