-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
Define types used throughout to assist with auto-complete. | ||
""" | ||
from typing import List, Dict, Any | ||
|
||
from typing_extensions import TypedDict | ||
|
||
# note: This element of typed dict is necessary due to the use of the "class" keyword. | ||
# note: Ideally the dict types get better refined moving forward to give more clarity to the caller. | ||
ElementAsDict = TypedDict('ElementAsDict', { | ||
'id': int, | ||
'tag': str, | ||
'class': List[str], | ||
'style': Dict[str, str], | ||
'props': Dict[str, Any], | ||
'events': Dict[str, Dict], | ||
'text': str, | ||
'slots': Dict | ||
}) | ||
|