Fix block serialization to exclude None values
When saving blocks via the Python API, the _to_block_document method
now excludes None values from the serialized data. This matches the
behavior of the web UI and prevents validation issues with union types
where explicit None values can cause Pydantic to fail validation.
Fixes #20442
Co-Authored-By: Nate Nowack <nate@prefect.io>
chore: add bench.toml for CLI benchmarking
Configuration file for python-cli-bench to measure CLI startup performance.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
feat(dev): add CLI benchmark harness as external dependency
adds python-cli-bench as a dev dependency group for CLI performance testing.
supersedes #20433 - the benchmark harness has been extracted to a separate
repo (https://github.com/zzstoatzz/python-cli-bench) to keep it decoupled
from the main codebase.
install with: uv sync --group bench
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>