Skip to content

fix: drop redundant cast flagged by ty 0.0.85 - #152

Merged
lesnik512 merged 1 commit into
mainfrom
fix/ty-0-0-85
Oct 7, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/ty-0-0-85

Conversation

@lesnik512

@lesnik512 lesnik512 commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #151

ty 0.0.85 infers dict.fromkeys(deps, "service_started") as dict[str, str], so the cast in compose2pod/graph.py is redundant and ty check now fails on the redundant-cast warning. The repo runs no other type checker that needs the cast.

Changes

  • Remove the redundant cast in _declared_depends_on and the unused cast import.

Checklist

  • just lint-ci passes (failed on the warning before the change)
  • just test-ci passes (1580 passed, 100% coverage)

@lesnik512
lesnik512 merged commit 304199a into main Oct 7, 2026
13 checks passed
@lesnik512
lesnik512 deleted the fix/ty-0-0-85 branch October 7, 2026 16:24
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.

Scheduled dependency check failed

1 participant