Skip to content

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Jun 25, 2025

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

While I was looking for unreachable code, I noticed some isinstance_or_issubclass cases were marked incorrectly as unreachable.
They are reachable, but when I wrote (#1997) we only had up to a 3-tuple.
The current max of 7 wasn't covered, so this PR fixes that

Before 1

image

After 1

image

Before 2

image

After 2

image

- Related (#2717)

While I was looking for unreachable code, I noticed some `isinstance_or_issubclass` cases were marked as unreachable.
They *are* reachable, but when I wrote (#1997) we only had up to a **3**-tuple.
The current max of **7** wasn't covered, so this PR fixes that
@dangotbanned dangotbanned marked this pull request as ready for review June 25, 2025 10:02
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna trust you on this one πŸ˜„ thanks!

@MarcoGorelli MarcoGorelli merged commit 6a8bbfe into main Jun 25, 2025
32 checks passed
@MarcoGorelli MarcoGorelli deleted the more-overloads-isinstance_or_issubclass branch June 25, 2025 17:20
dangotbanned added a commit that referenced this pull request Sep 18, 2025
- Full revert of #2731
- Not needed since #2969

Now, we only have 1 case which uses the 2x `@overload`(s) but I'm keeping the 3x as well for now πŸ™‚
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