From ae3c36b5dd8c55ecfbd12045cc441e4120d78d51 Mon Sep 17 00:00:00 2001 From: Fabio Pliger Date: Mon, 12 Feb 2024 12:18:35 -0600 Subject: [PATCH] change default docstring associated with all classes dynamically patched --- pyscript.core/src/stdlib/pyweb/ui/elements.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyscript.core/src/stdlib/pyweb/ui/elements.py b/pyscript.core/src/stdlib/pyweb/ui/elements.py index 724ec132..7ba4862d 100644 --- a/pyscript.core/src/stdlib/pyweb/ui/elements.py +++ b/pyscript.core/src/stdlib/pyweb/ui/elements.py @@ -100,12 +100,13 @@ def _add_js_properties(cls, *attrs): # Now we patch the __init__ method to specify the properties cls.__init__.__doc__ = f"""Class constructor. + Official documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/{cls.tag} Args: * content: The content of the element (can be a string, a list of elements or a single element) * style: The style of the element (a dictionary) - * All the properties of the class: {attrs} + * All the properties of the class: {attrs} (see the official documentation for more details) """