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

Fixes bug where assignments inside functions are evaluated when running `prefect deploy` #14403

Closed desertaxle closed 3 days ago

desertaxle commented 3 days ago

Updates safe_load_namespace to only walk the top level of source code when looking for classes, functions, and assignments.

Closes https://github.com/PrefectHQ/prefect/issues/14402

Example

Checklist