Skip to content

Commit

Permalink
typechecking
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and Secrus committed Sep 22, 2024
1 parent 40aabf1 commit 1d00a00
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
27 changes: 15 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/poetry/installation/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _prepare(
) -> Path:
from subprocess import CalledProcessError

distribution: DistributionType = "editable" if editable else "wheel" # type: ignore[assignment]
distribution: DistributionType = "editable" if editable else "wheel"
error: Exception | None = None

try:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_credential(
if password is None:
return None

return SimpleCredential(username, password) # type: ignore[no-untyped-call]
return SimpleCredential(username, password)

def delete_password(self, service: str, username: str) -> None:
if service in self._passwords and username in self._passwords[service]:
Expand Down
8 changes: 4 additions & 4 deletions tests/utils/test_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def test_authenticator_falls_back_to_keyring_url(

dummy_keyring.set_default_service_credential(
"https://foo.bar/simple/",
SimpleCredential("foo", "bar"), # type: ignore[no-untyped-call]
SimpleCredential("foo", "bar"),
)

authenticator = Authenticator(config, NullIO())
Expand All @@ -217,7 +217,7 @@ def test_authenticator_falls_back_to_keyring_netloc(

dummy_keyring.set_default_service_credential(
"foo.bar",
SimpleCredential("foo", "bar"), # type: ignore[no-untyped-call]
SimpleCredential("foo", "bar"),
)

authenticator = Authenticator(config, NullIO())
Expand Down Expand Up @@ -483,11 +483,11 @@ def test_authenticator_falls_back_to_keyring_url_matched_by_path(

dummy_keyring.set_default_service_credential(
"https://foo.bar/alpha/files/simple/",
SimpleCredential("foo", "bar"), # type: ignore[no-untyped-call]
SimpleCredential("foo", "bar"),
)
dummy_keyring.set_default_service_credential(
"https://foo.bar/beta/files/simple/",
SimpleCredential("foo", "baz"), # type: ignore[no-untyped-call]
SimpleCredential("foo", "baz"),
)

authenticator = Authenticator(config, NullIO())
Expand Down

0 comments on commit 1d00a00

Please sign in to comment.