feat: FT213 abc モジュール — ABC / abstractmethod / register / __subclasshook__#597
Merged
Conversation
…ook__ (#596) - ShapeInterface(ABC): abstractmethod + __subclasshook__ による構造的サブタイピング - LegacyPolygon: register() による仮想サブクラス登録 (isinstance/issubclass 動作確認) - FormatterInterface(ABC): @Final format_all + abstractmethod format_entry - get_abstract_methods(): __abstractmethods__ 実行時イントロスペクション - セキュリティ診断 (F-2 HIGH): Infinity/NaN 非標準 JSON → 500 DoS を発見・修正 _sanitize_value() + カスタム RequestValidationError ハンドラーで 422 に修正 - 30 テスト全通過、mypy --strict / ruff / pip-audit 全クリア - v1.8.89 → v1.8.90 Closes #596 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ShapeInterface(ABC):abstractmethod+__subclasshook__による構造的サブタイピングLegacyPolygon:register()による仮想サブクラス登録(isinstance/issubclassの動作を検証)FormatterInterface(ABC):@final format_all+abstractmethod format_entryget_abstract_methods():__abstractmethods__属性の実行時イントロスペクションInfinity/NaN非標準 JSON → 500 DoS を発見・修正(FT212 と同一パターン)Test plan
pytest)mypy --strict通過ruff check/ruff format --check通過pip-audit— 既知 CVE なしCloses #596
🤖 Generated with Claude Code