Python type hints and type safety patterns. Triggers on: type hints, typing, TypeVar, Generic, Protocol, mypy, pyright, type annotation, overload, TypedDict.
88
86%
Does it follow best practices?
Impact
92%
1.06xAverage score across 3 eval scenarios
Passed
No known issues
Collection ABCs and modern union syntax
Import from collections.abc
100%
100%
Sequence for input params
100%
100%
Mapping for dict params
100%
100%
Union X|Y syntax
100%
100%
Lowercase generics
100%
100%
Return type annotations
100%
100%
Parameter type annotations
100%
100%
No Optional import
100%
100%
No Union import
100%
100%
Python 3.10+ compatibility
100%
100%
TypedDict and Protocol structural typing
TypedDict usage
100%
100%
TypedDict import
100%
100%
Required/NotRequired usage
0%
100%
total=False usage
100%
0%
Protocol for callable with kwargs
100%
100%
Protocol import
100%
100%
Type-safe dict access
100%
100%
Union X|Y syntax
0%
100%
Lowercase generics
100%
100%
Return type annotations
100%
100%
Parameter annotations
100%
100%
Generics, TypeGuard, Literal, Final, and mypy config
TypeVar definition
100%
100%
Bounded TypeVar
0%
20%
Generic function usage
100%
100%
TypeGuard return type
100%
100%
TypeGuard import
100%
100%
Literal type usage
100%
100%
Final for constants
100%
100%
Final import
100%
100%
mypy strict config
100%
100%
mypy python_version config
100%
100%
Union X|Y syntax
42%
42%
No deprecated typing imports
0%
100%
f772de4
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.