You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <[email protected]>
0 commit comments