From f1c7a387d3d4ff07a857a13bcf5d17928abb9e14 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Tue, 23 Jan 2024 10:25:49 +0000 Subject: [PATCH] Add return type to webelement.submit Without this, `mypy` in strict mode gives me the error: ``` Call to untyped function "submit" in typed context ``` --- py/selenium/webdriver/remote/webelement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/remote/webelement.py b/py/selenium/webdriver/remote/webelement.py index fe2626a8f2817..d5752ca678180 100644 --- a/py/selenium/webdriver/remote/webelement.py +++ b/py/selenium/webdriver/remote/webelement.py @@ -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"