Quellcode durchsuchen

fix method signature

Falko Schindler vor 2 Jahren
Ursprung
Commit
9c749d1172
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      nicegui/elements/element.py

+ 1 - 1
nicegui/elements/element.py

@@ -63,7 +63,7 @@ class Element:
             self.update()
         return self
 
-    def style(self, add: str = Optional[str], *, remove: str = Optional[str], replace: str = Optional[str]):
+    def style(self, add: Optional[str] = None, *, remove: Optional[str] = None, replace: Optional[str] = None):
         '''CSS style sheet definitions to modify the look of the element.
         Every style in the `remove` parameter will be removed from the element.
         Styles are separated with a semicolon.