ty-check
Check Python code for type errors using the ty type checker. Supports project configuration for accurate analysis.
Instructions
Type-check Python code using ty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to analyze | |
| project_path | No | Optional project directory used for ty config and import resolution |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagnostics | Yes | List of type diagnostics found | |
| total_diagnostics | Yes | Total number of diagnostics | |
| error_count | Yes | Number of error diagnostics | |
| warning_count | Yes | Number of warning diagnostics |