Skip to content

refactor: remove @override from Command.run() implementations - #3128

Merged
rchl merged 1 commit into
mainfrom
refactor/remove-run-override
Nov 3, 2026
Merged

rchl merged 1 commit into
mainfrom
refactor/remove-run-override

Conversation

@rchl

@rchl rchl commented Nov 3, 2026

Copy link
Copy Markdown
Member

This is another step towards replacing our bundled stubs with the public sublime-text-stubs package. Unlike our bundled stubs, that package doesn't declare run() on sublime_plugin.Command or its subclasses, because each command defines its own signature. With those stubs, @override on a run() method fails the type check because there is no base method to override.

This removes @override from the two run() methods that have it:

  • LspTextCommandWithTasks.run() in plugin/lsp_task.py
  • LspSaveAllCommand.run() in plugin/save_command.py

There is no runtime change.

Testing: tox passes against the current bundled stubs.

@rchl
rchl enabled auto-merge (squash) November 3, 2026 07:29
@rchl
rchl merged commit 8afda53 into main Nov 3, 2026
10 checks passed
@rchl
rchl deleted the refactor/remove-run-override branch November 3, 2026 07:30
@rchl

rchl commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Didn't mean to auto-merge. Forgot that PRs don't require review here.

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.

1 participant