Skip to content
P

python-type-safety

Python type safety with type hints, generics, protocols

by wshobsonFree

#1812in AI Skills
0In stores

Description

python-type-safety is an agent skill from the wshobson/agents collection for adding type safety to Python code with type hints, generics, pr…

Highlights

  • Type annotations for parameters, returns and variables
  • Generic classes
  • Protocols for structural interfaces
  • Type narrowing and guards
  • mypy and pyright strict configuration
  • Installs with the skills CLI

Ratings & Reviews

No ratings yet

Be the first to rate python-type-safety.

People also visit

T

typescript-magician

Designs complex generic types, refactors `any` types to strict alternatives

AI Skills
Get
P

pyrefly-type-coverage

Migrate a file to use stricter Pyrefly type checking

AI Skills
Get
T

typescript-advanced-types

Comprehensive guidance

AI Skills
Get
P

python-pro

Building Python 3.11+ applications requiring type safety, async programming

AI Skills
Get
P

python-patterns

Pythonic idioms, PEP 8 standards, type hints

AI Skills
Get
T

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small

AI Skills
Get

python-type-safety FAQ

What does type safety add in Python?

Errors that a type checker can find before the code runs, with annotations acting as checked documentation.

Which checkers are covered?

mypy and pyright, including how to configure strict checking.

What is a protocol?

A way to describe the shape an object must have, so any matching object can be used without inheriting from a class.

Can I add types to an existing codebase?

Yes. The skill favors adding annotations in steps and tightening checks as the code allows.

How do I install it?

Run npx skills add https://github.com/wshobson/agents --skill python-type-safety.

What security audits does it have?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

What are the best python-type-safety alternatives?

Popular alternatives to python-type-safety include typescript-magician, pyrefly-type-coverage and typescript-advanced-types. See all python-type-safety alternatives

Developer Stuff

Badges