-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Replaced :param: and :args: from docstrings #16469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[py] Replaced :param: and :args: from docstrings #16469
Conversation
…nd options classes
… and RemoteConnection classes
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
|
@cgoldberg more files to review . thanks 🙏 |
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
User description
🔗 Related Issues
relates to #11442
💥 What does this PR do?
This pull request updates docstrings throughout the codebase to use the Google-style
ArgsandReturnsformat, replacing the previous:paramand:returnssyntax. The changes improve consistency and readability of documentation for classes and methods in several modules, includingcdp.py,script.py,driver_finder.py,options.py, andservice.py.Docstring style modernization:
py/selenium/webdriver/common/bidi/cdp.pyto useArgsandReturnssections instead of:paramand:returns, enhancing clarity for parameters and return values. [1] [2] [3] [4] [5] [6]py/selenium/webdriver/common/bidi/script.pyto use the new format, including constructors and JSON deserialization methods. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]py/selenium/webdriver/common/driver_finder.pyto useArgs.py/selenium/webdriver/common/options.py, including consistent use ofArgsandReturnsand improved argument documentation. [1] [2] [3] [4] [5] [6]Serviceclass inpy/selenium/webdriver/common/service.py.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Documentation
Description
Converted docstrings from
:param:and:returns:to Google-styleArgsandReturnsformatUpdated multiple modules including CDP, script, driver finder, options, and service classes
Improved consistency and readability of parameter and return value documentation
Added type hints to method signatures in remote connection and script modules
Diagram Walkthrough
File Walkthrough
9 files
Convert CDP docstrings to Google-style formatRefactor script module docstrings to Args/ReturnsUpdate DriverFinder class docstring formatModernize options descriptor docstringsConvert Service class docstrings to Google styleUpdate FirefoxProfile docstrings formatRefactor Firefox Service docstring formatModernize RemoteConnection docstrings and add type hintsUpdate Safari Service docstring format