소스 검색

fix method signature

Falko Schindler 2 년 전
부모
커밋
9c749d1172
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.