Bump linter versions
MODIFY
.pre-commit-config.yaml
.pre-commit-config.yaml
repos:
- repo: https://github.com/asottile/pyupgrade
- rev: v2.7.4
+ rev: v2.27.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/psf/black
- rev: 20.8b1
+ rev: 21.9b0
hooks:
- id: black
args: ["--target-version", "py37"]
- repo: https://github.com/PyCQA/isort
- rev: 5.6.4
+ rev: 5.9.3
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
- rev: 3.8.4
+ rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [flake8-2020]

MODIFY
src/urllib3/util/retry.py
src/urllib3/util/retry.py
@@ -235,7 +235,7 @@ class Retry:
self.history = history or ()
self.respect_retry_after_header = respect_retry_after_header
self.remove_headers_on_redirect = frozenset(
- [h.lower() for h in remove_headers_on_redirect]
+ h.lower() for h in remove_headers_on_redirect
)
def new(self, **kw: Any) -> "Retry":

Bump linter versions