Skip to content

Drop redundant int cast in _new_main#148

Merged
gaborbernat merged 1 commit into
mainfrom
fix-redundant-cast
Jun 4, 2026
Merged

Drop redundant int cast in _new_main#148
gaborbernat merged 1 commit into
mainfrom
fix-redundant-cast

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

ty 0.0.43 flags cast("int", _original_main(argv)) as a redundant-cast warning since the value is already typed int, and --error-on-warning makes the type job fail. This blocks unrelated PRs such as #147.

Remove the cast and its now-unused typing.cast import.

@gaborbernat gaborbernat merged commit a21cae0 into main Jun 4, 2026
11 checks passed
@gaborbernat gaborbernat deleted the fix-redundant-cast branch June 4, 2026 05:08
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