Fix per file ruff ignores related to typing#26254
Fix per file ruff ignores related to typing#26254DarkLight1337 merged 1 commit intovllm-project:mainfrom
Conversation
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
tests/plugins/prithvi_io_processor_plugin/prithvi_io_processor/prithvi_processor.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Code Review
This pull request does a great job of cleaning up typing-related linting issues by removing many per-file ruff ignores and applying the corresponding fixes. The changes modernize the type hints, which improves code clarity and maintainability. However, I noticed that the modernization from Optional[X] to X | None (as per PEP 604) has been applied inconsistently across the codebase. Some files have been updated, while others that were part of this cleanup still use the older Optional syntax. To ensure consistency, I've added several suggestions to apply this modern typing style throughout the changed files. Addressing these will make the codebase more uniform and easier to maintain.
|
Gemini is wrong, the files where |
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Karan Goel <3261985+karan@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Forward fixes some of the issues skipped by #26247