mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-10-10 15:03:20 +02:00
* fix(versions): deterministic meta.fastmcp.versions ordering
dedupe_with_versions() sorted version strings by parse_version_key()
only, and sorted() is stable, so PEP 440-equivalent spellings ("1" vs
"1.0") kept their registration order in meta.fastmcp.versions. The
same component registered before vs after another equivalent spelling
produced different metadata.
Apply the raw-string tie-breaker from #4058 (version_sort_key) to this
sort as well: equivalent spellings now always order lexicographically,
making the injected list independent of registration order.
Fixes #4867
* Fix version metadata test typing
---------
Co-authored-by: fei <feiiiiii5@users.noreply.github.com>
Co-authored-by: nate nowack <thrast36@gmail.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_calls.py | ||
| test_filtering.py | ||
| test_mounting.py | ||
| test_versioning.py | ||
| test_visibility_version_fallback.py | ||