-
Notifications
You must be signed in to change notification settings - Fork 4
Modernize type hints #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Modernize type hints #184
Conversation
Update sublime API stubs from ST4202.
This commit sorts some imports and modernizes type hints.
c5149f8 to
4093705
Compare
FichteFoll
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these the official stubs from the ST distribution?
|
Took original sublime.py and sublime_types.py, modified type hints to more modern format and added additional hints to satisfy mypy. Existing sublime_plugin.pyi was extended by missing classes and methods from official sublime_plugin.py |
This commit re-uses ST4's `Value` type instead of defining its own duplicate. Note: adjusts missed import sort order
satisfy mypy as sublime does not export Value, explicitly.
|
Perhaps we should add a mypy job to our PR lint workflow. |
It is not supported by ST4107
This PR...
There are some mypy errors, which may require further investigation about how to fix...
Example: