Skip to content

Commit

Permalink
Merge pull request #1964 from timbrel/mypy-update
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste authored Dec 25, 2024
2 parents f3fad6a + 9e6119b commit 4d2e0df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/commands/blame.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def do_action(self, commit_hash, **kwargs):
"commit_hash": commit_hash, "file_path": self._file_path
})

def selected_index(self, commit_hash): # type: ignore[override]
def selected_index(self, commit_hash):
return self._commit_hash and commit_hash.startswith(self._commit_hash)

def log(self, **kwargs): # type: ignore[override]
Expand Down
2 changes: 1 addition & 1 deletion core/commands/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def run(self, local_branch_name=None, force=False, force_with_lease=False):
])
return
else:
kont()
kont() # type: ignore[call-arg]

else:
self.window.run_command("gs_push_to_branch_name", {
Expand Down
2 changes: 1 addition & 1 deletion core/commands/show_file_at_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def do_action(self, commit_hash, **kwargs):
"lang": view.settings().get('syntax')
})

def selected_index(self, commit_hash): # type: ignore[override]
def selected_index(self, commit_hash):
if not self.overlay_for_show_file_at_commit:
return True

Expand Down
4 changes: 2 additions & 2 deletions core/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def enqueue_on_worker(fn, *args, **kwargs):

def task():
_enqueued_tasks.dec()
action() # type: ignore[call-arg]
action()

_enqueue_on_worker(task)
_enqueued_tasks.inc()
Expand Down Expand Up @@ -333,7 +333,7 @@ def task():
with THROTTLED_LOCK:
ok = THROTTLED_CACHE.get(token) == action
if ok:
action() # type: ignore[call-arg]
action()

return task

Expand Down

0 comments on commit 4d2e0df

Please sign in to comment.