From 2ed1f004213c3296d8668ae2a222997d9ee0511a Mon Sep 17 00:00:00 2001 From: ilia Date: Tue, 24 Oct 2023 10:34:02 +0300 Subject: [PATCH] fix get_doc --- turtle/equipment/turtle_device.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/turtle/equipment/turtle_device.py b/turtle/equipment/turtle_device.py index 39b922f..0f8c583 100644 --- a/turtle/equipment/turtle_device.py +++ b/turtle/equipment/turtle_device.py @@ -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