Commit 685dbd1
committed
Modernize type hints (#184)
* Update stubs
1. typing in sublime.py and sublime_plugin.py was extended to minimize
linter/mypy warnings.
2. auto-generated stubs via mypy's stubgen script.
3. Merged with existing stubs for EventListeners
- Source files are from ST4202.
- Only public end-points are kept.
Most internal functions, methods, etc. are removed from stubs.
* Modernize type hints
1. Typing expects python 3.10+ type checker to be used.
2. Runtime code is maintained compatible with python 3.8
Note: Needs some compromises compared to modern py3.13 expectations of typing,
to maintain compatibility with py3.81 parent 9d18242 commit 685dbd1
19 files changed
Lines changed: 860 additions & 461 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments