Skip to content
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

Merged
merged 17 commits into from
Oct 21, 2023
Merged

Resolve ANN102 #2149

merged 17 commits into from
Oct 21, 2023

Conversation

matsumotosan
Copy link
Member

@matsumotosan matsumotosan commented Oct 6, 2023

What does this PR do?

Resolve ANN102: missing-type-cls

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?
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/

@matsumotosan matsumotosan marked this pull request as ready for review October 6, 2023 13:50
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #2149 (7fe7a18) into master (fdaab96) will increase coverage by 0%.
The diff coverage is 100%.

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           

stancld
stancld previously requested changes Oct 7, 2023
Copy link
Contributor

@stancld stancld left a 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

@matsumotosan
Copy link
Member Author

I think I accidentally fixed the wrong linter error. I can close this PR if this isn't a style we want to enforce.

@justusschock
Copy link
Member

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

@stancld
Copy link
Contributor

stancld commented Oct 7, 2023

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, typing.Type should work here. type built-in for annotations was added in 3.9/3.10 I think

@Borda Borda requested a review from stancld October 9, 2023 07:24
@mergify mergify bot added the has conflicts label Oct 9, 2023
@mergify mergify bot removed the has conflicts label Oct 9, 2023
@matsumotosan
Copy link
Member Author

Unit tests for old failed RuntimeError: CUDA error: no kernel image is available for execution on the...

@Borda
Copy link
Member

Borda commented Oct 13, 2023

Unit tests for old failed RuntimeError: CUDA error: no kernel image is available for execution on the...

seems we have some flakes in the system... :/

@Borda Borda enabled auto-merge (squash) October 17, 2023 17:47
@Borda
Copy link
Member

Borda commented Oct 20, 2023

@stancld do you still have a request for changes? 🐰

@mergify mergify bot added the ready label Oct 20, 2023
@Borda Borda merged commit b4688d6 into Lightning-AI:master Oct 21, 2023
61 checks passed
@matsumotosan matsumotosan deleted the todo-ann102 branch October 21, 2023 05:03
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.

5 participants