Open M1troll opened 1 week ago
⏱️ Estimated effort to review [1-5] | 3 |
🧪 Relevant tests | No |
🔒 Security concerns | No |
⚡ Key issues to review |
Possible Bug: The method get_downloadable_files was changed from returning a dict to List[str] . Ensure that the actual implementation of this method and its usage across the project align with this change to avoid runtime errors. |
Code Consistency: The PR includes various cosmetic changes such as reformatting import statements and adjusting docstrings. While these changes improve readability, ensure they adhere to the project's coding standards. |
Category | Suggestion | Score |
Possible issue |
Add validation for the
___
**The | 7 |
Add validation for the
___
**The | 7 |
User description
Description
The main change is changing the return type hint for
def get_downloadable_files(self)
fromdict
toList[str]
, which is actually what is returned.Also some cosmetic improvements have been added.
Motivation and Context
I caught some error from my static type checker () and saw that
get_downloadable_files
has the wrong type annotation and decided to fix it =)Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
get_downloadable_files
fromdict
toList[str]
to accurately reflect the returned value.__exit__
,get_cookie
, and others to useOptional
andType
fromtyping
.Changes walkthrough 📝
webdriver.py
Fix type hints and improve code formatting in `webdriver.py`
py/selenium/webdriver/remote/webdriver.py
get_downloadable_files
fromdict
toList[str]
.