This repository was archived by the owner on May 12, 2026. It is now read-only.
Commit ecbdde7
committed
style: Add comprehensive type annotations to base_modifier module
Add full type annotations to src/core/modifiers/base_modifier.py:
- Add 'from __future__ import annotations' for forward references
- Add TYPE_CHECKING block for PortingContext import
- Add type annotations to __init__ method parameters and return type
- Add type annotations to class attributes (ctx, name, logger)
- Add type annotations to _find_file_recursive and _find_dir_recursive methods
- Use modern Python 3.8+ union syntax (X | Y)1 parent 60f2560 commit ecbdde7
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
0 commit comments