Lightlines
By wshobson

python-type-safety

wshobson12k installs

Catch type errors in Python before code runs.

What it does

Guides improvements to Python code through explicit type annotations, reusable generic types, structural interfaces, and strict static checks.

When to use it

Use when adding type hints, creating generic classes, defining protocols, configuring strict type checking, or building type-safe APIs.

How to use it

It changes how the agent writes and checks Python project code by requiring annotated public APIs and recommending strict type checking.

What you provide

  • An existing project

Latest review

What you need · 2

The preferred union syntax uses Python 3.10 or later; the files also show older annotation syntax for Python 3.9.

The best-practices checklist calls for running mypy in strict mode in CI.


Access · 0

No additional actions listed.