ha-zowietek-typing

Community

Enforce strict Python typing, eliminate 'Any'.

Authortroykelly
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures all Python code adheres to strict type annotations, preventing common runtime errors, improving code readability, and making maintenance easier by eliminating ambiguous Any types. It automates the enforcement of high-quality, type-safe code.

Core Features & Use Cases

  • Strict Type Annotation: Mandates full type annotation for all functions, methods, and class attributes.
  • TypedDict for API Responses: Defines structured types for JSON data received from the ZowieBox API.
  • Mypy Strict Compliance: Ensures code passes mypy --strict checks, catching type errors pre-runtime.
  • Use Case: When developing a new sensor, this skill ensures that the API response data is correctly mapped to a TypedDict, internal state is managed with a dataclass, and all methods are fully type-hinted, catching potential type mismatches before runtime.

Quick Start

Use the ha-zowietek-typing skill to review the api.py file and ensure all function parameters and return types are strictly annotated without using Any.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ha-zowietek-typing
Download link: https://github.com/troykelly/homeassistant-zowietek/archive/main.zip#ha-zowietek-typing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository