Skip to content
P

python-type-safety

Python type safety with type hints, generics, protocols

by wshobsonFree

Launch
#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

P

python-pro

Building Python 3.11+ applications requiring type safety, async programming

AI Skills
Launch
P

python-patterns

Pythonic idioms, PEP 8 standards, type hints

AI Skills
Launch
P

python-expert

Senior Python developer expertise for writing clean, efficient

AI Skills
Launch
A

airflow-dag-patterns

Build production Apache Airflow DAGs

AI Skills
Launch
A

async-python-patterns

Comprehensive guide to asyncio, concurrent patterns

AI Skills
Launch
B

backtesting-frameworks

Robust backtesting systems

AI Skills
Launch

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 python-pro, python-patterns and python-expert. See all python-type-safety alternatives

Developer Stuff

Badges