Commit 0c956fd
Move Final annotations to class level and add type annotations to __slots__ classes
This change improves type safety and code organization by:
- Moving all Final annotations from constructors to class level for consistency
- Adding proper type annotations to all __slots__ classes
- Simplifying constructor assignments by removing redundant type annotations
Classes updated:
- HistoricHookCaller: 5 Final attributes moved to class level
- NormalHookCaller: 4 Final attributes moved to class level
- HookImpl: 11 Final attributes moved to class level
- HookspecMarker: _project_spec moved to class level with Final
- HookimplMarker: _project_spec moved to class level with Final
- HookspecConfiguration: 4 Final attributes moved to class level
- HookimplConfiguration: 6 Final attributes moved to class level
- HookRelay: Added __dict__ type annotation
- SubsetHookCaller: Added type annotations for _orig and _remove_plugins
- HookSpec: Added type annotations for all 8 attributes
- Result: Added type annotations for all 3 attributes
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e754127 commit 0c956fd
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
634 | 645 | | |
635 | 646 | | |
636 | 647 | | |
| |||
0 commit comments