From 4d13842ec6e246e90718c371b74503cee8d061ad Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Fri, 12 Aug 2022 18:48:15 -0700 Subject: [PATCH] fixups --- setup.cfg | 1 + src/pip/_internal/utils/hashes.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index bdc224e6d..dae2f21b1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,6 +40,7 @@ ignore_missing_imports = True disallow_untyped_defs = True disallow_any_generics = True warn_unused_ignores = True +no_implicit_optional = True [mypy-pip._vendor.*] ignore_errors = True diff --git a/src/pip/_internal/utils/hashes.py b/src/pip/_internal/utils/hashes.py index e79cfdb8c..76727306a 100644 --- a/src/pip/_internal/utils/hashes.py +++ b/src/pip/_internal/utils/hashes.py @@ -1,5 +1,5 @@ import hashlib -from typing import TYPE_CHECKING, BinaryIO, Dict, Iterable, List +from typing import TYPE_CHECKING, BinaryIO, Dict, Iterable, List, Optional from pip._internal.exceptions import HashMismatch, HashMissing, InstallationError from pip._internal.utils.misc import read_chunks