Skip to content

feat: FT211 typing — TypedDict / Protocol / runtime_checkable / get_type_hints / Literal#591

Merged
hideyukiMORI merged 1 commit into
mainfrom
feat/590-ft211-typing
May 22, 2026
Merged

feat: FT211 typing — TypedDict / Protocol / runtime_checkable / get_type_hints / Literal#591
hideyukiMORI merged 1 commit into
mainfrom
feat/590-ft211-typing

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

概要

  • typing モジュールの TypedDict / Protocol / get_type_hints / Literal / Annotated を HTTP API として実装
  • FT211(セキュリティ診断なし・クラッカーペンテストなし)

摩擦点

  • F-1: @runtime_checkable Protocolisinstance 後も mypy は型を絞り込まない → 再 isinstance が必要
  • F-2: Literal 型を Pydantic フィールドに直接使えば type: ignore[assignment] と手動バリデーションを完全排除できる

チェックリスト

  • pytest 22 passed
  • mypy --strict 0 errors
  • ruff check 0 errors
  • ruff format --check pass
  • pip-audit No known vulnerabilities
  • FT レポート作成
  • INDEX.md・current.md 更新
  • バージョン v1.8.87 → v1.8.88

Closes #590

🤖 Generated with Claude Code

…ype_hints / Literal (#590)

摩擦点:
- F-1: @runtime_checkable Protocol の isinstance 後も mypy は型を絞り込まないため再 isinstance が必要
- F-2: Literal 型を Pydantic フィールドに直接使えば type:ignore 不要・手動バリデーション不要

バージョン: v1.8.87 → v1.8.88

Closes #590

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit 5150a9a into main May 22, 2026
0 of 2 checks passed
@hideyukiMORI hideyukiMORI deleted the feat/590-ft211-typing branch May 22, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FT211: typing — TypedDict / Protocol / runtime_checkable / get_type_hints / Literal

1 participant