GS/BS
← Standards directory
Type safety

mypy.

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.

Python

Community rubric · v1

The evidence

Evidence coverage4 / 8
4 supported · 4 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    The getting-started guide defines the contract of a typed argument and shows mismatched calls that violate it.

    Cited source ↗
  • Measurement

    Verified

    In its greeting example, passing an integer to a string parameter produces an argument-type diagnostic, while the string call type-checks.

    Cited source ↗
  • Conformance

    Verified

    The function-checking suite pairs annotated calls with expected diagnostics, including incompatible argument types, excess arguments and missing arguments.

    Cited source ↗
  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a change trigger a useful check? Contribute evidence ↗

  • Getting started

    Verified

    The guide walks from installing mypy to invoking it on a sample Python file and reading the reported type errors.

    Cited source ↗
  • Real-world adoption

    Unknown

    No reviewed evidence is recorded for this dimension.

    Has another team put it to work? Contribute evidence ↗

  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

mypy .

Agent prompt

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.
Read the agent skill ↗

Primary source

mypy documentation ↗