3131class ROProperty (Protocol [T_co ]):
3232 """Protocol for a read-only descriptor."""
3333
34- def __get__ (self , ins : Any , owner : Any = None ) -> T_co | Self | None :
35- ...
34+ def __get__ (self , ins : Any , owner : Any = None ) -> T_co | Self | None : ...
3635
3736
3837@runtime_checkable
3938class RWProperty (ROProperty [T ], Protocol ):
4039 """Protocol for a read-write descriptor."""
4140
42- def __set__ (self , ins : Any , value : T ) -> None :
43- ...
41+ def __set__ (self , ins : Any , value : T ) -> None : ...
4442
4543
4644class NamedPropMixin :
@@ -59,12 +57,10 @@ def __init__(self, *ids: EventEnum, default: T | None = None, readonly: bool = F
5957 self ._readonly = readonly
6058
6159 @overload
62- def _get_event (self , ins : ItemModel [VE ]) -> ItemModel [VE ]:
63- ...
60+ def _get_event (self , ins : ItemModel [VE ]) -> ItemModel [VE ]: ...
6461
6562 @overload
66- def _get_event (self , ins : EventModel ) -> AnyEvent | None :
67- ...
63+ def _get_event (self , ins : EventModel ) -> AnyEvent | None : ...
6864
6965 def _get_event (self , ins : ItemModel [VE ] | EventModel ):
7066 if isinstance (ins , ItemModel ):
@@ -85,12 +81,10 @@ def default(self) -> T | None: # Configure version based defaults here
8581 return self ._default
8682
8783 @abc .abstractmethod
88- def _get (self , ev_or_ins : Any ) -> T | None :
89- ...
84+ def _get (self , ev_or_ins : Any ) -> T | None : ...
9085
9186 @abc .abstractmethod
92- def _set (self , ev_or_ins : Any , value : T ) -> None :
93- ...
87+ def _set (self , ev_or_ins : Any , value : T ) -> None : ...
9488
9589 @final
9690 def __get__ (self , ins : Any , owner : Any = None ) -> T | Self | None :
0 commit comments