Skip to content

Commit a0976d8

Browse files
committed
Fix lint issues
1 parent 97cc6a4 commit a0976d8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/unit/test_network_auth.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_keyring_get_password(
193193
expect: Tuple[Optional[str], Optional[str]],
194194
) -> None:
195195
keyring = KeyringModuleV1()
196-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
196+
monkeypatch.setitem(sys.modules, "keyring", keyring)
197197
auth = MultiDomainBasicAuth(
198198
index_urls=["http://example.com/path2", "http://example.com/path3"],
199199
keyring_provider="import",
@@ -205,7 +205,7 @@ def test_keyring_get_password(
205205

206206
def test_keyring_get_password_after_prompt(monkeypatch: pytest.MonkeyPatch) -> None:
207207
keyring = KeyringModuleV1()
208-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
208+
monkeypatch.setitem(sys.modules, "keyring", keyring)
209209
auth = MultiDomainBasicAuth(keyring_provider="import")
210210

211211
def ask_input(prompt: str) -> str:
@@ -221,7 +221,7 @@ def test_keyring_get_password_after_prompt_when_none(
221221
monkeypatch: pytest.MonkeyPatch,
222222
) -> None:
223223
keyring = KeyringModuleV1()
224-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
224+
monkeypatch.setitem(sys.modules, "keyring", keyring)
225225
auth = MultiDomainBasicAuth(keyring_provider="import")
226226

227227
def ask_input(prompt: str) -> str:
@@ -242,7 +242,7 @@ def test_keyring_get_password_username_in_index(
242242
monkeypatch: pytest.MonkeyPatch,
243243
) -> None:
244244
keyring = KeyringModuleV1()
245-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
245+
monkeypatch.setitem(sys.modules, "keyring", keyring)
246246
auth = MultiDomainBasicAuth(
247247
index_urls=["http://[email protected]/path2", "http://example.com/path4"],
248248
keyring_provider="import",
@@ -278,7 +278,7 @@ def test_keyring_set_password(
278278
expect_save: bool,
279279
) -> None:
280280
keyring = KeyringModuleV1()
281-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
281+
monkeypatch.setitem(sys.modules, "keyring", keyring)
282282
auth = MultiDomainBasicAuth(prompting=True, keyring_provider="import")
283283
monkeypatch.setattr(auth, "_get_url_and_credentials", lambda u: (u, None, None))
284284
monkeypatch.setattr(auth, "_prompt_for_password", lambda *a: creds)
@@ -354,7 +354,7 @@ def get_credential(self, system: str, username: str) -> Optional[Credential]:
354354
def test_keyring_get_credential(
355355
monkeypatch: pytest.MonkeyPatch, url: str, expect: str
356356
) -> None:
357-
monkeypatch.setitem(sys.modules, "keyring", KeyringModuleV2()) # type: ignore[misc]
357+
monkeypatch.setitem(sys.modules, "keyring", KeyringModuleV2())
358358
auth = MultiDomainBasicAuth(
359359
index_urls=["http://example.com/path1", "http://example.com/path2"],
360360
keyring_provider="import",
@@ -378,7 +378,7 @@ def get_credential(self, system: str, username: str) -> None:
378378

379379
def test_broken_keyring_disables_keyring(monkeypatch: pytest.MonkeyPatch) -> None:
380380
keyring_broken = KeyringModuleBroken()
381-
monkeypatch.setitem(sys.modules, "keyring", keyring_broken) # type: ignore[misc]
381+
monkeypatch.setitem(sys.modules, "keyring", keyring_broken)
382382

383383
auth = MultiDomainBasicAuth(
384384
index_urls=["http://example.com/"], keyring_provider="import"

0 commit comments

Comments
 (0)