-
Notifications
You must be signed in to change notification settings - Fork 401
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
Resolve ANN102 #2149
Resolve ANN102 #2149
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2149 +/- ##
======================================
Coverage 87% 87%
======================================
Files 293 293
Lines 16410 16414 +4
======================================
+ Hits 14266 14270 +4
Misses 2144 2144 |
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.
I'm not sure if we want to add type annotation for cls
. Personally, I see this rule to be a bit abundant and annoying :D
I think I accidentally fixed the wrong linter error. I can close this PR if this isn't a style we want to enforce. |
imo that would be fine but I think indexing the builtin type is not supported for every python version so we might want to consider something from the typing package instead |
Yes, |
Unit tests for old failed |
seems we have some flakes in the system... :/ |
@stancld do you still have a request for changes? 🐰 |
What does this PR do?
Resolve ANN102: missing-type-cls
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃
📚 Documentation preview 📚: https://torchmetrics--2149.org.readthedocs.build/en/2149/