diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 13b3abc62..838b1f24e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -69,7 +69,7 @@ repos: files: \.py$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.770 + rev: v0.790 hooks: - id: mypy exclude: docs|tests diff --git a/src/pip/_internal/exceptions.py b/src/pip/_internal/exceptions.py index 62bde1eed..56482caf7 100644 --- a/src/pip/_internal/exceptions.py +++ b/src/pip/_internal/exceptions.py @@ -200,7 +200,7 @@ class HashError(InstallationError): """ req = None # type: Optional[InstallRequirement] head = '' - order = None # type: Optional[int] + order = -1 # type: int def body(self): # type: () -> str