-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore some mypy errors #8404
Ignore some mypy errors #8404
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8404
Note: Links to docs will display an error until the docs builds have been completed. ❌ 18 New Failures, 19 Unrelated FailuresAs of commit 7aa8d93 with merge base 8134306 (): NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -188,7 +188,7 @@ def __getitem__(self, index: int) -> Tuple[Any, Any]: | |||
if t == "polygon": | |||
target = self._load_json(self.targets[index][i]) | |||
else: | |||
target = Image.open(self.targets[index][i]) | |||
target = Image.open(self.targets[index][i]) # type: ignore[assignment] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: You can get rid of this by putting target: Any
above the if
Hey @NicolasHug! You merged this PR, but no labels were added. |
Reviewed By: vmoens Differential Revision: D57099462 fbshipit-source-id: 297d501192d47caa4d3be158f054c43273b2ecba
This silences these 2 mypy errors: