Skip to content

Remove unused typing.cast imports - #151

Merged
ThomasWaldmann merged 1 commit into
libfuse:mainfrom
ThomasWaldmann:fix-ruff-unused-cast
Sep 3, 2026
Merged

Remove unused typing.cast imports#151
ThomasWaldmann merged 1 commit into
libfuse:mainfrom
ThomasWaldmann:fix-ruff-unused-cast

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Collaborator

The Test workflow currently fails on main at the Lint (ruff) step:

F401 [*] `typing.cast` imported but unused
  --> examples/hello.py:30:20
  --> examples/hello_asyncio.py:31:20
  --> test/test_fs.py:13:20
Found 3 errors.

The imports became unused in b241c54 ("Turn FileHandleT and InodeT from
NewTypes into type aliases"), which removed the cast() calls but left the
imports behind. Since fail-fast: true, this cancels the whole matrix, so no
tests have actually run on main since then.

With the three lines removed, the full matrix is green again (ruff, ruff
format, mypy, pyright, tests, docs on 3.10-3.14).

🤖 Generated with Claude Code

They became unused in b241c54 (turning FileHandleT and InodeT from NewTypes
into type aliases), which made ruff's F401 fail CI on main.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ThomasWaldmann
ThomasWaldmann merged commit 0767e7a into libfuse:main Sep 3, 2026
6 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the fix-ruff-unused-cast branch September 3, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant