77
88from ._core import enable_ki_protection , ParkingLot
99from ._deprecate import deprecated
10- from ._util import SubclassingDeprecatedIn_v0_15_0
10+ from ._util import Final
1111
1212
1313@attr .s (repr = False , eq = False , hash = False )
14- class Event (metaclass = SubclassingDeprecatedIn_v0_15_0 ):
14+ class Event (metaclass = Final ):
1515 """A waitable boolean value useful for inter-task synchronization,
1616 inspired by :class:`threading.Event`.
1717
@@ -99,7 +99,7 @@ class _CapacityLimiterStatistics:
9999
100100
101101@async_cm
102- class CapacityLimiter (metaclass = SubclassingDeprecatedIn_v0_15_0 ):
102+ class CapacityLimiter (metaclass = Final ):
103103 """An object for controlling access to a resource with limited capacity.
104104
105105 Sometimes you need to put a limit on how many tasks can do something at
@@ -342,7 +342,7 @@ def statistics(self):
342342
343343
344344@async_cm
345- class Semaphore (metaclass = SubclassingDeprecatedIn_v0_15_0 ):
345+ class Semaphore (metaclass = Final ):
346346 """A `semaphore <https://en.wikipedia.org/wiki/Semaphore_(programming)>`__.
347347
348348 A semaphore holds an integer value, which can be incremented by
@@ -562,7 +562,7 @@ def statistics(self):
562562 )
563563
564564
565- class Lock (_LockImpl , metaclass = SubclassingDeprecatedIn_v0_15_0 ):
565+ class Lock (_LockImpl , metaclass = Final ):
566566 """A classic `mutex
567567 <https://en.wikipedia.org/wiki/Lock_(computer_science)>`__.
568568
@@ -576,7 +576,7 @@ class Lock(_LockImpl, metaclass=SubclassingDeprecatedIn_v0_15_0):
576576 """
577577
578578
579- class StrictFIFOLock (_LockImpl , metaclass = SubclassingDeprecatedIn_v0_15_0 ):
579+ class StrictFIFOLock (_LockImpl , metaclass = Final ):
580580 r"""A variant of :class:`Lock` where tasks are guaranteed to acquire the
581581 lock in strict first-come-first-served order.
582582
@@ -646,7 +646,7 @@ class _ConditionStatistics:
646646
647647
648648@async_cm
649- class Condition (metaclass = SubclassingDeprecatedIn_v0_15_0 ):
649+ class Condition (metaclass = Final ):
650650 """A classic `condition variable
651651 <https://en.wikipedia.org/wiki/Monitor_(synchronization)>`__, similar to
652652 :class:`threading.Condition`.
0 commit comments