Skip to content

Commit

Permalink
build(deps): use pyright from snap
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Feb 4, 2025
1 parent 6c33fb4 commit 6424463
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
4 changes: 3 additions & 1 deletion craft_application/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def from_parts_error(cls, err: craft_parts.PartsError) -> Self:
@classmethod
def from_os_error(cls, err: OSError) -> Self:
"""Create a PartsLifecycleError from an OSError."""
message = f"{err.filename}: {err.strerror}" if err.filename else err.strerror
message = (
f"{err.filename}: {err.strerror}" if err.filename else str(err.strerror)
)
details = err.__class__.__name__
if err.filename:
details += f": filename: {err.filename!r}"
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ lint = [
]
types = [
"mypy[reports]==1.12.0",
"pyright==1.1.385",
"types-pyyaml",
"types-requests",
"types-urllib3",
Expand Down
24 changes: 0 additions & 24 deletions uv.lock

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

0 comments on commit 6424463

Please sign in to comment.