Skip to content

Commit

Permalink
Merge pull request #1971 from graingert/make-parking-lot-slotted
Browse files Browse the repository at this point in the history
make ParkingLot slotted
  • Loading branch information
pquentin authored Apr 21, 2021
2 parents 4e8e19c + 66786bc commit b001577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trio/_core/_parking_lot.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@
_counter = count()


@attr.s(frozen=True)
@attr.s(frozen=True, slots=True)
class _ParkingLotStatistics:
tasks_waiting = attr.ib()


@attr.s(eq=False, hash=False)
@attr.s(eq=False, hash=False, slots=True)
class ParkingLot(metaclass=Final):
"""A fair wait queue with cancellation and requeueing.
Expand Down

0 comments on commit b001577

Please sign in to comment.