PrefectHQ
prefect
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
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
10 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
11 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
1 day 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
1 day ago
Restrict InitVar fallback so ClassVar is not treated as requires_init_var dataclasses.fields() excludes ClassVars as well as InitVars, and a ClassVar without a default has init=True with missing defaults. Detect true InitVars via _FIELD_INITVAR/isinstance so replace() still re-runs __post_init__. Signed-off-by: KVR Vishnu <46535652+VISHNU0906@users.noreply.github.com>
VISHNU0906:fix/visit-collection-initvar-23797
1 day ago
Fix visit_collection for dataclasses with required InitVar replace() demands required InitVars that fields() omits and that are not stored on the instance. Copy those dataclasses without re-init and set visited stored fields, matching the init=False handling. Fixes #23797 Signed-off-by: KVR Vishnu <46535652+VISHNU0906@users.noreply.github.com>
VISHNU0906:fix/visit-collection-initvar-23797
1 day ago
Validate RRule timezones on schedule writes only Move the timezone check from RRuleSchedule to the write-path NormalizedSchedule type used by the deployment schedule actions, next to the RRule normalization, so schedules already stored with an invalid timezone (e.g. "UTC+2") still load when deployments are read and can be repaired with a valid timezone. Signed-off-by: Udaya Tejas <udayatejas2004@gmail.com>
udsy19:fix/server-rrule-timezone-validation
1 day ago
Merge branch 'main' into feat/fastapi-guard-security-middleware
rennf93:feat/fastapi-guard-security-middleware
1 day ago
Latest Branches
CodSpeed Performance Gauge
+23%
Keep `Annotated[T, Field(description=...)]` descriptions in flow parameter schemas
#23809
11 hours ago
ae3d1e7
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
11 hours ago
d880baa
CassianoE:fix-cli-script-error-output
CodSpeed Performance Gauge
+23%
Fix visit_collection for dataclasses with required InitVar
#23803
1 day ago
4f1b6c9
VISHNU0906:fix/visit-collection-initvar-23797
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs