Skip to content

Commit 7276fdd

Browse files
authored
Fix type signature of create_element (#1773)
Pass linting rules Type parameter too
1 parent dbf0e05 commit 7276fdd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webview/dom/dom.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ def window(self) -> Element:
2929
return self._elements.get('window', Element(self.__window, 'window'))
3030

3131
def create_element(
32-
self, html: str, parent: Union[Element, str] = None, mode=ManipulationMode.LastChild
32+
self,
33+
html: str,
34+
parent: Optional[Union[Element, str]] = None,
35+
mode: ManipulationMode = ManipulationMode.LastChild,
3336
) -> Element:
3437
self.__window.events.loaded.wait()
3538

0 commit comments

Comments
 (0)