Skip to content

Conversation

@Thom1729
Copy link
Member

Based on comments in #160:

  • Make CommandInputHandler generic.
  • Offer overload for confirm() with event.
  • Broaden type for run().

jfcherng added a commit to jfcherng-sublime/ST-API-stubs that referenced this pull request Apr 16, 2021
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
@gwenzek
Copy link

gwenzek commented Apr 16, 2021

Looks good to me :-)

@Thom1729
Copy link
Member Author

Other improvements:

  • Remove the unnecessary inheritance clauses.
  • meta_info returns dict, not str.
  • on_X_command can return None.
  • on_query_context returns Optional[bool], not Optional[None].
  • Use more specific return type for on_query_completions.

jfcherng added a commit to jfcherng-sublime/ST-API-stubs that referenced this pull request Apr 19, 2021
SublimeText/sublime_lib#167 (comment)

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
jfcherng added a commit to jfcherng-sublime/ST-API-stubs that referenced this pull request Apr 19, 2021
SublimeText/sublime_lib#167 (comment)

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
@Thom1729 Thom1729 merged commit 239cb58 into master Apr 19, 2021
@Thom1729 Thom1729 deleted the sublime-plugin-stub-fixes branch April 19, 2021 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants