Skip to content

Commit

Permalink
Add return type to webelement.submit
Browse files Browse the repository at this point in the history
Without this, `mypy` in strict mode gives me the error:

```
Call to untyped function "submit" in typed context
```
  • Loading branch information
adamtheturtle authored Jan 23, 2024
1 parent f9ff9b3 commit f1c7a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def click(self) -> None:
"""Clicks the element."""
self._execute(Command.CLICK_ELEMENT)

def submit(self):
def submit(self) -> None:
"""Submits a form."""
script = (
"/* submitForm */var form = arguments[0];\n"
Expand Down

0 comments on commit f1c7a38

Please sign in to comment.