fix get_doc

This commit is contained in:
ilia 2023-10-24 10:34:02 +03:00
parent 593ad6b45c
commit 2ed1f00421

View File

@ -41,7 +41,10 @@ class TurtleDevice(SynchronyDevice):
descriptors = dict(actions=dict(), traits=dict())
for k, v in self.turtle.__dict__.items():
if not k.startswith("_"):
descriptors["traits"][k] = v
descriptors["traits"][k] = TraitDescriptor(k,
inspect.getdoc(v),
readable=True,
writable=False)
for m_name, member in inspect.getmembers(Turtle):
if m_name.startswith("_"): continue