-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[py] Refactored server.py
in a more pythonic approach.
#15840
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
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
@cgoldberg can you please trigger CI for this one |
@shbenzer @cgoldberg can you please review this PR please.. Thanks! |
User description
🔗 Related Issues
💥 What does this PR do?
Refactored
server.py
in a more pythonic approach by implementingproperty
descriptors.🔧 Implementation Notes
Implemented standard
getters
andsetters
to set various server parameters.💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Refactored
server.py
to use Python property descriptorsReplaced validation methods with property setters
Improved attribute validation and encapsulation
Enhanced code readability and maintainability
Changes walkthrough 📝
server.py
Refactor server attributes using properties and setters
py/selenium/webdriver/remote/server.py
path
,port
,version
,log_level
, andenv
status_url
to be a property