Skip to content

Commit

Permalink
Type TaskGroup in active_states (#4408)
Browse files Browse the repository at this point in the history
This was missing a type annotation before, which results in issues when
accessing `_states` when compiled. This fixes that issue.
  • Loading branch information
jakirkham authored Jan 7, 2021
1 parent 7fb5d4d commit 49e19c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ def active(self):

@property
def active_states(self):
tg: TaskGroup
return merge_with(sum, [tg._states for tg in self.active])

def __repr__(self):
Expand Down

0 comments on commit 49e19c0

Please sign in to comment.