diff --git a/py/selenium/webdriver/common/bidi/browser.py b/py/selenium/webdriver/common/bidi/browser.py index cd42d6094ea28..3355c07eff012 100644 --- a/py/selenium/webdriver/common/bidi/browser.py +++ b/py/selenium/webdriver/common/bidi/browser.py @@ -169,9 +169,7 @@ def from_dict(cls, data: dict) -> "ClientWindowInfo": class Browser: - """ - BiDi implementation of the browser module. - """ + """BiDi implementation of the browser module.""" def __init__(self, conn): self.conn = conn diff --git a/py/selenium/webdriver/common/bidi/input.py b/py/selenium/webdriver/common/bidi/input.py index 452f418d8da37..e3cf175015096 100644 --- a/py/selenium/webdriver/common/bidi/input.py +++ b/py/selenium/webdriver/common/bidi/input.py @@ -378,9 +378,7 @@ def from_json(cls, json): class Input: - """ - BiDi implementation of the input module. - """ + """BiDi implementation of the input module.""" def __init__(self, conn): self.conn = conn diff --git a/py/selenium/webdriver/common/bidi/permissions.py b/py/selenium/webdriver/common/bidi/permissions.py index 84f6749d84813..b167b47d09032 100644 --- a/py/selenium/webdriver/common/bidi/permissions.py +++ b/py/selenium/webdriver/common/bidi/permissions.py @@ -39,9 +39,7 @@ def to_dict(self) -> dict: class Permissions: - """ - BiDi implementation of the permissions module. - """ + """BiDi implementation of the permissions module.""" def __init__(self, conn): self.conn = conn diff --git a/py/selenium/webdriver/common/bidi/script.py b/py/selenium/webdriver/common/bidi/script.py index e397e0d7dfca2..851dfdfcc8d78 100644 --- a/py/selenium/webdriver/common/bidi/script.py +++ b/py/selenium/webdriver/common/bidi/script.py @@ -312,9 +312,7 @@ def execute(self, script: str, *args) -> dict: raise WebDriverException(error_message) def __convert_to_local_value(self, value) -> dict: - """ - Converts a Python value to BiDi LocalValue format. - """ + """Converts a Python value to BiDi LocalValue format.""" if value is None: return {"type": "null"} elif isinstance(value, bool): diff --git a/py/selenium/webdriver/common/bidi/webextension.py b/py/selenium/webdriver/common/bidi/webextension.py index 3f6fa6c82e042..5fb3983bdefb8 100644 --- a/py/selenium/webdriver/common/bidi/webextension.py +++ b/py/selenium/webdriver/common/bidi/webextension.py @@ -22,9 +22,7 @@ class WebExtension: - """ - BiDi implementation of the webExtension module. - """ + """BiDi implementation of the webExtension module.""" def __init__(self, conn): self.conn = conn diff --git a/py/selenium/webdriver/common/print_page_options.py b/py/selenium/webdriver/common/print_page_options.py index 51167cc448039..fb5f93a90c930 100644 --- a/py/selenium/webdriver/common/print_page_options.py +++ b/py/selenium/webdriver/common/print_page_options.py @@ -335,7 +335,10 @@ def __init__(self) -> None: self._margin: _MarginOpts = {} def to_dict(self) -> _PrintOpts: - """:Returns: A hash of print options configured.""" + """ + Returns: + A hash of print options configured. + """ return self._print_options def set_page_size(self, page_size: dict) -> None: diff --git a/py/selenium/webdriver/firefox/options.py b/py/selenium/webdriver/firefox/options.py index 931b6020d16fc..809d3b7f59e05 100644 --- a/py/selenium/webdriver/firefox/options.py +++ b/py/selenium/webdriver/firefox/options.py @@ -64,7 +64,10 @@ def binary(self, new_binary: Union[str, FirefoxBinary]) -> None: @property def binary_location(self) -> str: - """:Returns: The location of the binary.""" + """ + Returns: + The location of the binary. + """ return self._binary_location @binary_location.setter # noqa @@ -76,7 +79,10 @@ def binary_location(self, value: str) -> None: @property def preferences(self) -> dict: - """:Returns: A dict of preferences.""" + """ + Returns: + A dict of preferences. + """ return self._preferences def set_preference(self, name: str, value: Union[str, int, bool]): @@ -85,7 +91,10 @@ def set_preference(self, name: str, value: Union[str, int, bool]): @property def profile(self) -> Optional[FirefoxProfile]: - """:Returns: The Firefox profile to use.""" + """ + Returns: + The Firefox profile to use. + """ return self._profile @profile.setter