mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
* Add supports_tasks() method to replace string mode checks Consolidates task config mode checks into a readable method on TaskConfig. Instead of `task_config.mode == "forbidden"` or `task_config.mode != "forbidden"`, code now uses `task_config.supports_tasks()` for clearer intent. Updated 20 instances across the codebase and added type assertions in tests to resolve type checker warnings. * Update test to match new error message |
||
|---|---|---|
| .. | ||
| rules | ||