annotations

Type Annotation Workflow

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 "annotations" with this command: npx skills add dropseed/plain/dropseed-plain-annotations

Type Annotation Workflow

We are gradually adding type annotations using Python 3.13+.

Workflow

Check current coverage:

uv run plain code annotations <directory> --details

Add annotations: Focus on function/method signatures (parameters and return types)

Type check:

./scripts/type-check <directory>

Format: ./scripts/fix

Test: ./scripts/test <package>

Verify improvement:

uv run plain code annotations <directory>

Add to validation: Once a directory reaches 100% coverage, add it to FULLY_TYPED_PATHS in scripts/type-validate

Guidelines

  • Add from future import annotations when necessary

  • Focus on public APIs and user-facing methods first

  • Don't annotate init return types (type checkers infer None )

  • Use explicit return None for functions with -> Type | None return type

  • Some Django-style ORM patterns are inherently difficult to type - that's okay

  • Goal is progress, not perfection

Example

Check coverage

uv run plain code annotations plain/plain/assets --details

After adding annotations...

./scripts/type-check plain/plain/assets ./scripts/fix ./scripts/test plain uv run plain code annotations plain/plain/assets # Should show 100%

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.

Automation

readme

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

release

No summary provided by upstream source.

Repository SourceNeeds Review
General

Apple Books

Read your Apple Books library, highlights, notes, and reading progress directly from the local SQLite databases on macOS.

Registry SourceRecently Updated
1130Profile unavailable
Automation

Financial Ai Agent

查询金融行情数据(股票、黄金、原油等)。当用户提到查询行情、价格、指数、股票时使用。例如:'查询纳斯达克'、'现在金价多少'、'标普最近一周表现'、'设置我的key'、'替换key'。

Registry SourceRecently Updated