mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 14:34:17 +02:00
* feat: use abstract collection types in FastMCP.__init__ Use Sequence, Collection, and Mapping from collections.abc for more flexible typing in FastMCP.__init__ parameters. This allows downstream developers to pass tuples, sets, and other collection types instead of being restricted to list and dict. Changes: - middleware: list -> Sequence (converted to list internally) - tools: list -> Sequence - tool_transformations: dict -> Mapping (ToolManager updated) - include_tags: set -> Collection - exclude_tags: set -> Collection - dependencies: kept as list per maintainer request Closes #2212 Co-authored-by: William Easton <strawgate@users.noreply.github.com> * Concrete types in class inits * Small imports cleanup * Fix include/exclude tag handling --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: William Easton <strawgate@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| client | ||
| contrib | ||
| deprecated | ||
| experimental | ||
| integration_tests | ||
| prompts | ||
| resources | ||
| server | ||
| tools | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_examples.py | ||
| test_mcp_config.py | ||