You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request makes minor improvements to code documentation throughout several modules. The main change is the standardization of docstring formatting for class and method documentation, improving readability and consistency.
Documentation standardization:
Reformatted class-level docstrings in the BiDi modules (browser.py, input.py, permissions.py, webextension.py) to single-line style for better clarity and consistency. [1][2][3][4]
Updated method docstrings in firefox/options.py to use multi-line format with explicit return value descriptions, making documentation more readable. [1][2][3]
Changed method docstrings in print_page_options.py and script.py to improve formatting and clarity. [1][2]
🔧 Implementation Notes
i've added D200 rule locally and fixed all warns with no changes in rules in the main repo
💡 Additional Considerations
🔄 Types of changes
Cleanup (formatting, renaming)
PR Type
Documentation
Description
Standardize docstring formatting to single-line style
Convert multi-line docstrings to PEP 257 compliant format
Resolve D200 ruff linting warnings across BiDi modules
Improve docstring consistency in Firefox and print options
Diagram Walkthrough
flowchart LR
A["Multi-line docstrings"] -->|Convert to single-line| B["BiDi modules"]
C["Malformed return docs"] -->|Reformat to PEP 257| D["Firefox & Print options"]
B --> E["D200 compliance"]
D --> E
Loading
File Walkthrough
Relevant files
Documentation
browser.py
Standardize Browser class docstring format
py/selenium/webdriver/common/bidi/browser.py
Converted multi-line class docstring to single-line format
Improved readability of Browser class documentation
def to_dict(self) -> _PrintOpts:
"""
+ Get the current print configuration.+
Returns:
- A hash of print options configured.+ _PrintOpts: A dictionary of the configured print options; this is the internal dict and may be mutated by callers.
"""
return self._print_options
Apply / Chat
Suggestion importance[1-10]: 6
__
Why:
Relevant best practice - Keep API and documentation accurate and consistent by using precise, informative docstrings that describe behavior and types rather than generic placeholders.
Low
Update
iampopovich
changed the title
remove reST leftovers and resolve D200 ruff warns
[py] remove reST leftovers and resolve D200 ruff warns
Oct 28, 2025
cgoldberg
changed the title
[py] remove reST leftovers and resolve D200 ruff warns
[py] Update docstrings (remove reST leftovers and resolve D200)
Oct 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
🔗 Related Issues
relates to #16432
💥 What does this PR do?
This pull request makes minor improvements to code documentation throughout several modules. The main change is the standardization of docstring formatting for class and method documentation, improving readability and consistency.
Documentation standardization:
browser.py,input.py,permissions.py,webextension.py) to single-line style for better clarity and consistency. [1] [2] [3] [4]firefox/options.pyto use multi-line format with explicit return value descriptions, making documentation more readable. [1] [2] [3]print_page_options.pyandscript.pyto improve formatting and clarity. [1] [2]🔧 Implementation Notes
i've added D200 rule locally and fixed all warns with no changes in rules in the main repo
💡 Additional Considerations
🔄 Types of changes
PR Type
Documentation
Description
Standardize docstring formatting to single-line style
Convert multi-line docstrings to PEP 257 compliant format
Resolve D200 ruff linting warnings across BiDi modules
Improve docstring consistency in Firefox and print options
Diagram Walkthrough
File Walkthrough
browser.py
Standardize Browser class docstring formatpy/selenium/webdriver/common/bidi/browser.py
input.py
Standardize Input class docstring formatpy/selenium/webdriver/common/bidi/input.py
permissions.py
Standardize Permissions class docstring formatpy/selenium/webdriver/common/bidi/permissions.py
script.py
Standardize script conversion method docstringpy/selenium/webdriver/common/bidi/script.py
webextension.py
Standardize WebExtension class docstring formatpy/selenium/webdriver/common/bidi/webextension.py
print_page_options.py
Reformat print options docstring to PEP 257py/selenium/webdriver/common/print_page_options.py
options.py
Reformat Firefox options docstrings to PEP 257py/selenium/webdriver/firefox/options.py