mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
fix type that lead using the the JSDescriptor directly instead of the factory method
This commit is contained in:
@@ -79,7 +79,7 @@ def _add_js_properties(cls, *attrs):
|
||||
"""Add JSProperties to a class as `js_property` class attributes."""
|
||||
# First we set all the properties as JSProperties
|
||||
for attr in attrs:
|
||||
setattr(cls, attr, JSProperty(attr))
|
||||
setattr(cls, attr, js_property(attr))
|
||||
|
||||
# Now we patch the __init__ method to specify the properties
|
||||
cls.__init__.__doc__ = f"""Class constructor.
|
||||
|
||||
Reference in New Issue
Block a user