Style adjustments by flake8
This commit is contained in:
@@ -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
|
||||
@@ -16,7 +16,7 @@ logging.basicConfig(
|
||||
handlers=[
|
||||
logging.StreamHandler()
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def is_jsonable(content: Union[bytes, str]) -> bool:
|
||||
|
||||
@@ -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', )
|
||||
|
||||
Reference in New Issue
Block a user