Skip to content

Commit

Permalink
Task: Type-annotate {task_subtitle_did_change, task_did_complete}
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr committed Feb 3, 2024
1 parent a0aa9a7 commit f96a12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crystal/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,15 @@ def _call_self_and_record_result(self):
# === Internal Events ===

@final
def task_subtitle_did_change(self, task):
def task_subtitle_did_change(self, task: Task) -> None:
if self._use_extra_listener_assertions:
assert task in self.children_unsynchronized

if hasattr(self, 'child_task_subtitle_did_change'):
self.child_task_subtitle_did_change(task)

@final
def task_did_complete(self, task):
def task_did_complete(self, task: Task) -> None:
if self._use_extra_listener_assertions:
assert task in self.children_unsynchronized

Expand Down

0 comments on commit f96a12c

Please sign in to comment.