TYPE015warningPro

cross-language-type-duplication

Type defined in both Python and TypeScript — likely drift target

Applies to: Python, TypeScript

Why this matters

When the same shape lives as a hand-written Pydantic model AND a hand-written TS type / interface, the two drift the moment one side adds a field. Pick one source of truth (usually Python) and code-gen the other. Mark the generated file with `generated-types` in its name so this rule knows to ignore it.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, TYPE015 includedstablestack explain TYPE015

TYPE015 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: TYPE015