LogoClawIndex
CasesSkillsAbout
LogoClawIndex

type-hints-guide - Python Type Hints Guide

Guide Python type annotations using typing module features like Protocol, TypeVar, and Generic

Tags

Updated: 2026-03-24

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • write type annotations
  • define type variables
  • create generic classes
  • define protocols
  • preserve function signatures
  • restrict exact values
  • name complex types
  • overload functions
  • narrow types
  • define dataclass fields

Inputs

  • Python code
  • type annotation requirements
  • static type errors

Outputs

  • type annotations
  • type hints code
  • type error fixes

Requirements

  • Python 3.10+
  • typing module

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
python
type hints
typing
static analysis
protocol
generic
write type annotations
define type variables
create generic classes
define protocols
Python code
type annotation requirements
static type errors
type annotations
type hints code
type error fixes