Open metaboulie opened 19 hours ago
In case anyone else has ideas, I tried adding this code to class anywidget
's __init__
:
# Copy annotations
self.__annotations__ = getattr(widget.__class__, "__annotations__", {})
# Add runtime-discovered attributes to annotations
for name in dir(widget):
if not name.startswith("_"):
attr = getattr(widget, name)
self.__annotations__[name] = type(attr)
but it did not end up working
Describe the bug
https://github.com/user-attachments/assets/d9e96a18-4078-46d4-8ddf-92e9edab87c6
Environment
Code to reproduce