Skip to content
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

Merged
merged 27 commits into from
Dec 2, 2024
Merged

Refurbishment #322

merged 27 commits into from
Dec 2, 2024

Conversation

woctezuma
Copy link
Contributor

These are various refurbishments found with ruff and refurb, with Python 3.12 in mind.


if not sys.version_info[0] == 3 and sys.version_info[1] < 8:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete this check?

Copy link
Contributor Author

@woctezuma woctezuma Dec 2, 2024

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/

Copy link
Contributor Author

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"\}',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not regex right?

Copy link
Contributor Author

@woctezuma woctezuma Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bukson bukson merged commit 33a5cd9 into bukson:master Dec 2, 2024
@bukson
Copy link
Owner

bukson commented Dec 2, 2024

Thank you @woctezuma !

@woctezuma
Copy link
Contributor Author

You are welcome!

@woctezuma woctezuma deleted the refurbish branch December 2, 2024 13:24
@woctezuma woctezuma mentioned this pull request Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants