Skip to content

Commit

Permalink
fix: repr
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Oct 6, 2023
1 parent 5ac43f4 commit fdb8b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a_sync/primitives/locks/prio_semaphore.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def locked(self) -> bool:
)

def _count_waiters(self) -> Dict[PT, int]:
return {manager._priority: len(manager.waiters) for manager in sorted(self.waiters, key=lambda m: m._priority)}
return {manager._priority: len(manager.waiters) for manager in sorted(self._waiters, key=lambda m: m._priority)}

def _wake_up_next(self) -> None:
while self._waiters:
Expand Down

0 comments on commit fdb8b9f

Please sign in to comment.