Skip to content

[BUGFIX] Fix output sanitization type checking - #1467

Merged
jmbannon merged 3 commits into
masterfrom
j/fix-class-check
May 10, 2026
Merged

[BUGFIX] Fix output sanitization type checking#1467
jmbannon merged 3 commits into
masterfrom
j/fix-class-check

Conversation

@jmbannon

Copy link
Copy Markdown
Owner

In the inspection output, we check function's return types via issubclass to see if an optimization can be made. Guard against this check in case the return type isn't a class -- it could be a Union[..., ...] from a conditional.

@codecov

codecov Bot commented May 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.36%. Comparing base (b195f37) to head (4e060a2).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1467   +/-   ##
=======================================
  Coverage   92.35%   92.36%           
=======================================
  Files         117      117           
  Lines        7734     7736    +2     
=======================================
+ Hits         7143     7145    +2     
  Misses        591      591           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jmbannon
jmbannon merged commit 4421c4e into master May 10, 2026
34 checks passed
@jmbannon
jmbannon deleted the j/fix-class-check branch May 10, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant