-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb] Reduce RBS errors to 0 #14661
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
[rb] Reduce RBS errors to 0 #14661
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
@p0deje I downgraded again the steep version to run in JRuby and merged the latest |
|
@p0deje fixed the linter issues and corrected steep so it doesn't generated a rubocop smell |
User description
Description
This PRs implements inline ignore comments for issues related to the steep checker and updates the types that were causing errors
Motivation and Context
To add full RBS support for Selenium and eventually allow us to add an RBS check on the pipeline.
The reference feature is #10943
The goal is also to be able to have no steep errors to start adding the right type on the classes that have untyped to have the right type enforces
Types of changes
Checklist
PR Type
Enhancement
Description
Changes walkthrough 📝
20 files
log_handler.rb
Add steep ignore comments for log handler methodrb/lib/selenium/webdriver/bidi/log_handler.rb
add_message_handlermethod.account.rb
Add steep ignore comments for account initializationrb/lib/selenium/webdriver/common/fedcm/account.rb
initializemethod.target_locator.rb
Add steep ignore comments for new window methodrb/lib/selenium/webdriver/common/target_locator.rb
new_windowmethod.common.rb
Add steep ignore comments for HTTP call methodrb/lib/selenium/webdriver/remote/http/common.rb
callmethod.bidi.rbs
Update add_callback method signature in BiDirb/sig/lib/selenium/webdriver/bidi.rbs
add_callbackmethod signature to include event parameter.log_handler.rbs
Update log handler method signaturesrb/sig/lib/selenium/webdriver/bidi/log_handler.rbs
add_message_handlerblock parameter optional.remove_message_handler.struct.rbs
Specify untyped arguments for Struct classrb/sig/lib/selenium/webdriver/bidi/struct.rbs
Structclass to use untyped arguments.driver_finder.rbs
Add to_args method to driver finderrb/sig/lib/selenium/webdriver/common/driver_finder.rbs
to_argsmethod definition.error.rbs
Allow optional keys in URLS hashrb/sig/lib/selenium/webdriver/common/error.rbs
URLShash to allow optional keys.logger.rbs
Make block parameters optional in logger methodsrb/sig/lib/selenium/webdriver/common/logger.rbs
deprecateanddiscard_or_logmethods.
options.rbs
Use untyped keys and values for options hashrb/sig/lib/selenium/webdriver/common/options.rbs
@optionshash to use untyped keys and values.selenium_manager.rbs
Update binary_paths method to accept variable argumentsrb/sig/lib/selenium/webdriver/common/selenium_manager.rbs
binary_pathsmethod to accept variable string arguments.service.rbs
Add DRIVER_PATH_ENV_KEY constantrb/sig/lib/selenium/webdriver/common/service.rbs
DRIVER_PATH_ENV_KEYconstant.websocket_connection.rbs
Update add_callback method with block parameterrb/sig/lib/selenium/webdriver/common/websocket_connection.rbs
add_callbackmethod to include block parameter.account.rbs
Change initialize method to accept string argumentsrb/sig/lib/selenium/webdriver/fedcm/account.rbs
initializemethod to accept string arguments.options.rbs
Update options hash and enable_android parametersrb/sig/lib/selenium/webdriver/firefox/options.rbs
@optionshash to use untyped keys and values.enable_androidmethod parameters.bidi_bridge.rbs
Update close method return typerb/sig/lib/selenium/webdriver/remote/bidi_bridge.rbs
closemethod return type to untyped.bridge.rbs
Update method signatures in remote bridgerb/sig/lib/selenium/webdriver/remote/bridge.rbs
fedcm_account_listmethod return type.select_fedcm_accountmethod to accept an index parameter.executemethod return type to string.response.rbs
Change code attribute type to integerrb/sig/lib/selenium/webdriver/remote/response.rbs
@codeattribute type to integer.script.rbs
Update script initialization and handler methodsrb/sig/selenium/web_driver/script.rbs
initializemethod to useRemote::BiDiBridge.1 files
struct.rb
Update comment for clarity in BiDi modulerb/lib/selenium/webdriver/bidi/struct.rb