Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documentation and type-hinting to base element class. #356

Merged
merged 11 commits into from
Feb 13, 2023
Prev Previous commit
Next Next commit
add missing space before line break
  • Loading branch information
Steve Jackson committed Feb 11, 2023
commit 628864b70bc02e78eb820aa5feae03a05bf1a997
2 changes: 1 addition & 1 deletion nicegui/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _parse_style(text: Optional[str]) -> Dict[str, str]:
result[key.strip()] = value.strip()
return result

def style(self, add: Optional[str] = None, *, remove: Optional[str] = None, replace: Optional[str] = None)\
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.

Expand Down