modified: equipment/turtle_device.py

This commit is contained in:
vviora 2023-11-17 18:25:13 +03:00
parent 070fc3ab18
commit 7742a74729

View File

@ -11,12 +11,6 @@ class TurtleDevice(SynchronyDevice):
del self.turtle
super().close()
# @property
# def trait_descriptors(self):
# traits = [attribute for attribute in vars(self.turtle).items()
# if (attribute[0].startswith('_') == False)]
# return Collection[[TraitDescriptor(*tr) for tr in traits]]
@property
def trait_descriptors(self):
@ -26,12 +20,6 @@ class TurtleDevice(SynchronyDevice):
self.traits = [TraitDescriptor(*tr) for tr in traits]
return self.traits
# @property
# def action_descriptors(self):
# actions = [(attribute, getattr(t, attribute)) for attribute in dir(t)
# if (attribute.startswith('_') == False)]
# return Collection[[TraitDescriptor(*ac) for ac in actions]]
@property
def action_descriptors(self):