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 PYI041 #2151

Merged
merged 12 commits into from
Oct 18, 2023
Merged

Resolve PYI041 #2151

merged 12 commits into from
Oct 18, 2023

Conversation

matsumotosan
Copy link
Member

@matsumotosan matsumotosan commented Oct 6, 2023

What does this PR do?

Resolve PYI041 errors: redundant-numeric-union

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--2151.org.readthedocs.build/en/2151/

@SkafteNicki SkafteNicki added this to the v1.3.0 milestone Oct 10, 2023
@SkafteNicki
Copy link
Member

All places where

isinstance(val, (int, float)

was changed to

isinstance(val, float)

should be changed back. The rule PYI041 only has to do with type annotation.

@SkafteNicki SkafteNicki marked this pull request as ready for review October 17, 2023 16:27
@Borda Borda enabled auto-merge (squash) October 17, 2023 17:48
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #2151 (4546886) into master (1442e53) will increase coverage by 0%.
The diff coverage is 100%.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #2151   +/-   ##
======================================
  Coverage      87%     87%           
======================================
  Files         293     293           
  Lines       16394   16397    +3     
======================================
+ Hits        14250   14253    +3     
  Misses       2144    2144           

@mergify mergify bot added the ready label Oct 18, 2023
@Borda Borda merged commit 4fe6d05 into Lightning-AI:master Oct 18, 2023
Borda pushed a commit that referenced this pull request Nov 30, 2023
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 4fe6d05)
Borda pushed a commit that referenced this pull request Dec 1, 2023
Co-authored-by: Nicki Skafte Detlefsen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 4fe6d05)
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.

4 participants