Skip to content

Commit

Permalink
Add return type to webelement.submit (#13490)
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
```

Co-authored-by: Diego Molina <[email protected]>
  • Loading branch information
adamtheturtle and diemol authored Mar 26, 2024
1 parent fccfed1 commit 4cfe983
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 4cfe983

Please sign in to comment.