浏览代码

fixed commenting on style method.

Steve Jackson 2 年之前
父节点
当前提交
5c88756eff
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      nicegui/element.py

+ 1 - 2
nicegui/element.py

@@ -123,8 +123,7 @@ class Element(ABC, Visibility):
 
     def style(self, add: Optional[str] = None, *, remove: Optional[str] = None, replace: Optional[str] = None)\
             -> Self:
-        """
-        Apply, remove, or replace CSS style sheet definitions to modify the look of the element.
+        """Apply, remove, or replace CSS style sheet definitions to modify the look of the element.
 
         .. note::
             Removing styles can be helpful if the predefined style sheet definitions by NiceGUI are not wanted