Skip to content

Commit 685dbd1

Browse files
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.8
1 parent 9d18242 commit 685dbd1

19 files changed

Lines changed: 860 additions & 461 deletions

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ source = "vcs"
3838
version-file = "sublime_lib/_version.py"
3939
tag-pattern = "v{version}"
4040

41+
[tool.black]
42+
line-length = 100
43+
4144
[tool.coverage.run]
4245
omit = [
4346
"*/tests/*",

0 commit comments

Comments
 (0)