Skip to content

Commit c643213

Browse files
authored
Merge pull request #13418 from notatallshaw/fix-mypy-1.16.0-type-hint-errors
Fix mypy 1.16.0 type hint errors
2 parents ab2a3f1 + 1574d88 commit c643213

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
args: [--fix, --exit-non-zero-on-fix]
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.15.0
31+
rev: v1.16.0
3232
hooks:
3333
- id: mypy
3434
exclude: tests/data

src/pip/_internal/network/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def __init__(
230230
) -> None:
231231
self.prompting = prompting
232232
self.index_urls = index_urls
233-
self.keyring_provider = keyring_provider # type: ignore[assignment]
233+
self.keyring_provider = keyring_provider
234234
self.passwords: dict[str, AuthInfo] = {}
235235
# When the user is prompted to enter credentials and keyring is
236236
# available, we will offer to save them. If the user accepts,

tests/lib/venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def sitecustomize(self) -> str | None:
226226
return self._sitecustomize
227227

228228
@sitecustomize.setter
229-
def sitecustomize(self, value: str) -> None:
229+
def sitecustomize(self, value: str | None) -> None:
230230
self._sitecustomize = value
231231
self._customize_site()
232232

0 commit comments

Comments
 (0)