-
Notifications
You must be signed in to change notification settings - Fork 159
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
Refurbishment #322
Refurbishment #322
Conversation
|
||
if not sys.version_info[0] == 3 and sys.version_info[1] < 8: |
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.
Why delete this check?
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.
It is not deleted, it is edited due to https://docs.astral.sh/ruff/rules/negate-equal-op/
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.
My bad. The check was deleted due to https://docs.astral.sh/ruff/rules/outdated-version-block/ 🤦
I will send the fix.
@@ -62,7 +62,7 @@ def set_proxies(self, proxies: dict) -> dict: | |||
if not isinstance(proxies, dict): | |||
raise TypeError( | |||
'Proxy must be a dict. Example: ' | |||
'\{"http": "http://login:password@host:port"\, "https": "http://login:password@host:port"\}' | |||
r'\{"http": "http://login:password@host:port"\, "https": "http://login:password@host:port"\}', |
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.
Its not regex right?
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.
Thank you @woctezuma ! |
You are welcome! |
These are various refurbishments found with
ruff
andrefurb
, with Python 3.12 in mind.