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
Merge branch 'main' into main
  • Loading branch information
washad committed Feb 11, 2023
commit 1a7a99a144b00609f532e91116ffa90eecc67654
5 changes: 2 additions & 3 deletions nicegui/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ def __enter__(self) -> Self:

def __exit__(self, *_):
self.default_slot.__exit__(*_)

def to_dict(self):
"""Get important attributes of an element as a dictionary."""

def _collect_event_dict(self) -> Dict[str, Dict]:
events: Dict[str, Dict] = {}
for listener in self._event_listeners:
words = listener.type.split('.')
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.