Type Hints

Python type hints, type checking, and static analysis with mypy

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Type Hints" with this command: npx skills add pluginagentmarketplace/custom-plugin-python/pluginagentmarketplace-custom-plugin-python-type-hints

Python Type Hints Skill

Overview

Master Python type hints for better code quality, IDE support, and static type checking with mypy.

Topics Covered

Basic Type Hints

  • Variable annotations
  • Function signatures
  • Return types
  • Optional types
  • Union types

Advanced Typing

  • Generic types
  • TypeVar and ParamSpec
  • Protocol and structural typing
  • Literal types
  • TypedDict

Type Checking

  • mypy configuration
  • Strict mode settings
  • Type ignore comments
  • Stub files (.pyi)
  • Type coverage

Runtime Types

  • typing_extensions
  • Pydantic validation
  • Runtime type checking
  • Dataclasses with types
  • attrs integration

Best Practices

  • Gradual typing strategy
  • Third-party type stubs
  • CI type checking
  • Documentation with types
  • Type-driven development

Prerequisites

  • Python fundamentals
  • OOP concepts

Learning Outcomes

  • Write type-annotated code
  • Configure mypy properly
  • Use generic types
  • Implement protocols

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

pandas data analysis

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

machine learning

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python fundamentals

No summary provided by upstream source.

Repository SourceNeeds Review