[CI] Fix Pre-commit Issue Cannot determine type of "rank" and "world_size"#26448
[CI] Fix Pre-commit Issue Cannot determine type of "rank" and "world_size"#26448
Conversation
Signed-off-by: yewentao256 <zhyanwentao@126.com>
There was a problem hiding this comment.
Code Review
This pull request fixes a mypy type checking error by adding redundant type annotations. While this is an effective workaround, it's important to address the underlying issue to improve code maintainability. My review includes a comment on this matter.
|
@yewentao256 where is this precommit issue? Latest commits on main are passing fine |
@mgoin If you try to upload something diff with that file, this pre-commit issue will trigger locally |
|
Could you instead try moving Lines 27 to 55 in 2e54db4 There will probably be some other mypy errors but this will be better for the long term health of vLLM |
Signed-off-by: yewentao256 <zhyanwentao@126.com>
|
Ok I just tried and saw 47 issues. Many of them are likely linked to a few configs being marked as optional when they shouldn't be, so it likely won't require 47 changes. But yes this can be follow up work. Please just add a comment saying that the duplicate type hinting can be removed once #26533 is closed? |
Signed-off-by: yewentao256 <zhyanwentao@126.com>
|
@hmellor Done, thanks! |
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: Dhruvil Bhatt <bhattdbh@amazon.com>
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: bbartels <benjamin@bartels.dev>
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com>
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com>
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com>
…size" (vllm-project#26448) Signed-off-by: yewentao256 <zhyanwentao@126.com>
Purpose
Fix pre-commit issue