Skip to content

Conversation

AntoineSimoulin
Copy link
Member

@AntoineSimoulin AntoineSimoulin commented Sep 15, 2025

Fix linting issues torchvision/utils.py:369: error: Incompatible types in assignment (expression has type "list[tuple[int, int, int]]", variable has type "list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None").

Also fix failing tests pytest test/test_utils.py -vvv -k "test_draw_segmentation_masks_errors" to match expected error message "colors must be a tuple or a string, or a list thereof".

Copy link

pytorch-bot bot commented Sep 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9218

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 7de543d with merge base bddc4d8 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the cla signed label Sep 15, 2025
@AntoineSimoulin AntoineSimoulin merged commit e3b5d3a into pytorch:main Sep 15, 2025
67 of 69 checks passed
Copy link

Hey @AntoineSimoulin!

You merged this PR, but no labels were added.
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

AntoineSimoulin added a commit to AntoineSimoulin/vision that referenced this pull request Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants