Skip to content

Commit 4cfe983

Browse files
Add return type to webelement.submit (#13490)
Without this, `mypy` in strict mode gives me the error: ``` Call to untyped function "submit" in typed context ``` Co-authored-by: Diego Molina <[email protected]>
1 parent fccfed1 commit 4cfe983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/remote/webelement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def click(self) -> None:
9393
"""Clicks the element."""
9494
self._execute(Command.CLICK_ELEMENT)
9595

96-
def submit(self):
96+
def submit(self) -> None:
9797
"""Submits a form."""
9898
script = (
9999
"/* submitForm */var form = arguments[0];\n"

0 commit comments

Comments
 (0)