Style adjustments by flake8
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
ignore = E501 # line too long
|
ignore = E501, F401
|
||||||
exclude = .git,__pycache__,docs,.github,build,dist
|
exclude = .git,.venv,__pycache__,docs,.github,build,dist,tests,benchmarks.py
|
||||||
@@ -43,7 +43,7 @@ def construct_proxy_dict(proxy_string: Union[str, Dict[str, str]]) -> Union[Dict
|
|||||||
}
|
}
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# Urllib will say that one of the parameters above can't be casted to the correct type like `int` for port etc...
|
# 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):
|
elif isinstance(proxy_string, dict):
|
||||||
valid_keys = ('server', 'username', 'password', )
|
valid_keys = ('server', 'username', 'password', )
|
||||||
|
|||||||
Reference in New Issue
Block a user