Style adjustments by flake8

This commit is contained in:
Karim shoair
2024-11-29 21:14:52 +02:00
parent d6cc07deaa
commit 97fecc9d5f
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
[flake8]
ignore = E501 # line too long
exclude = .git,__pycache__,docs,.github,build,dist
ignore = E501, F401
exclude = .git,.venv,__pycache__,docs,.github,build,dist,tests,benchmarks.py
+1 -1
View File
@@ -43,7 +43,7 @@ def construct_proxy_dict(proxy_string: Union[str, Dict[str, str]]) -> Union[Dict
}
except ValueError:
# Urllib will say that one of the parameters above can't be casted to the correct type like `int` for port etc...
raise TypeError(f'The proxy argument\'s string is in invalid format!')
raise TypeError('The proxy argument\'s string is in invalid format!')
elif isinstance(proxy_string, dict):
valid_keys = ('server', 'username', 'password', )