Skip to content

Commit c97f791

Browse files
[py] Fixed type hint (SeleniumHQ#15814)
Fixed type hint in selenium/webdriver/common/bidi/common.py
1 parent c1a84a2 commit c97f791

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/common/bidi/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17+
from typing import Generator, Optional
1718

1819

19-
def command_builder(method: str, params: dict = None) -> dict:
20+
def command_builder(method: str, params: Optional[dict] = None) -> Generator[dict, dict, dict]:
2021
"""Build a command iterator to send to the BiDi protocol.
2122
2223
Parameters:

0 commit comments

Comments
 (0)