---
name: mypy
description: "Use when adopting mypy to assess this standard: Check Python interfaces statically"
---

# Apply mypy

Start with typed public interfaces and check callers across package boundaries. Record third-party stub versions so local checks match CI.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by mypy.
2. Use mypy in this repository to meet this standard: Check Python interfaces statically. Start with typed public interfaces and check callers across package boundaries. Record third-party stub versions so local checks match CI. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://mypy.readthedocs.io/) for configuration and prerequisites.

## Tool invocation

```
mypy .
```
