mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +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> |
||
|---|---|---|
| .. | ||
| auth | ||
| http | ||
| middleware | ||
| openapi | ||
| proxy | ||
| __init__.py | ||
| test_app_state.py | ||
| test_auth_integration.py | ||
| test_context.py | ||
| test_experimental_openapi_feature_flag.py | ||
| test_file_server.py | ||
| test_icons.py | ||
| test_import_server.py | ||
| test_input_validation.py | ||
| test_log_level.py | ||
| test_logging.py | ||
| test_mount.py | ||
| test_resource_prefix_formats.py | ||
| test_run_server.py | ||
| test_server.py | ||
| test_server_interactions.py | ||
| test_server_lifespan.py | ||
| test_streamable_http_no_redirect.py | ||
| test_tool_annotations.py | ||
| test_tool_exclude_args.py | ||
| test_tool_transformation.py | ||