PrefectHQ
prefect
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
chore: ignore pyright call-arg on default_factory invocation
kingsley-123:fix/get-call-parameters-default-factory
2 hours ago
fix: handle TypeError from one-argument default_factory in _resolve_field_info_default
kingsley-123:fix/get-call-parameters-default-factory
2 hours ago
fix: call default_factory when unwrapping FieldInfo defaults in get_call_parameters
kingsley-123:fix/get-call-parameters-default-factory
2 hours ago
fix(schemas): merge Annotated Fields the way pydantic does for descriptions In pydantic, a later `Field` in `Annotated` that sets `description=None` or `""` replaces an earlier description. The lookup from the previous commit skipped empty values instead and brought the earlier description back, e.g. for `Annotated[PositiveInt, Field(description=None)]` when the alias has a description. The `Field`s in `Annotated` are now merged with `FieldInfo.from_annotation`, which gives the same description as a pydantic model field on every supported pydantic version; `FieldInfo.merge_field_infos` is deprecated since pydantic 2.12. An empty merged description still falls back to the docstring, like a `Field` default. When pydantic can't merge the `Field`s (e.g. `default` with `default_factory`), no description is taken from them, so `generate_parameter_schema` keeps falling back to `Any` for that parameter instead of raising. Added tests for a later `Field` clearing the description, with and without a docstring, and for the `Any` fallback.
CassianoE:fix-annotated-field-description
7 hours ago
fix(schemas): keep Annotated field descriptions in flow parameter schemas A flow parameter declared as `Annotated[int, Field(description=...)]` ended up without a description in its parameter schema. `process_v2_params` only took the description from a `Field` default or the docstring and passed `description=None` otherwise; pydantic merges that field with the `Field` in `Annotated`, and the explicit `None` won. The description now comes from the `Field` default, then from the last `Field` in `Annotated` that has one, then from the docstring, so the `Annotated` form gets the same precedence as the `Field` default from #19281. The lookup runs after the `*args`/`**kwargs` wrapping, so a `Field` in their annotation keeps describing each value. Added tests for `process_v2_params` and for the whole schema from `parameter_schema`; they fail on `main` and pass with this change.
CassianoE:fix-annotated-field-description
23 hours ago
fix(cli): report flow script errors cleanly in deploy and flow serve When the script behind an entrypoint fails to load, `prefect deploy` and `prefect flow serve` let the `ScriptError` reach `with_cli_exception_handling`. That handler prints the chained traceback, mostly Prefect's own frames, and ends with "An exception occurred.", which reads like Prefect crashed. Since #23773 this is what a script that fails to import behind a non-`def` entrypoint gets; a syntax error in the flow file already went that way. Both commands now catch `ScriptError` the way `prefect block register` does: they print the script's traceback with `print_verbatim`, because it carries the user's source lines, and exit through `exit_with_error` with the script error. `ValueError` and `MissingFlowError` are handled as before. Added a CLI test for each command with an entrypoint assigned from `with_options()` in a script that fails to import; both fail on `main` and pass with this change.
CassianoE:fix-cli-script-error-output
24 hours ago
Preserve private slots and skip setters for unchanged InitVar fields Signed-off-by: KVR Vishnu <46535652+VISHNU0906@users.noreply.github.com>
VISHNU0906:fix/visit-collection-initvar-23797
2 days ago
Tighten InitVar visit_collection fallback and copy semantics Exclude init=False InitVars from the required-InitVar predicate so replace() still refreshes custom constructors, guard against __copy__ returning self before setattr, use single-backtick docstring refs, and type the parametrized test cls argument. Signed-off-by: KVR Vishnu <46535652+VISHNU0906@users.noreply.github.com>
VISHNU0906:fix/visit-collection-initvar-23797
2 days ago
Latest Branches
CodSpeed Performance Gauge
+23%
fix: call default_factory when unwrapping FieldInfo defaults in get_call_parameters
#23811
2 hours ago
92b1884
kingsley-123:fix/get-call-parameters-default-factory
CodSpeed Performance Gauge
+23%
Keep `Annotated[T, Field(description=...)]` descriptions in flow parameter schemas
#23809
7 hours ago
4581494
CassianoE:fix-annotated-field-description
CodSpeed Performance Gauge
+23%
Show the script error from `prefect deploy` and `prefect flow serve` for flows that fail to load
#23807
24 hours ago
d880baa
CassianoE:fix-cli-script-error-output
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs