Skip to content

Make not_falsy generic to preserve argument types for static analysis - #779

Merged
MrCreosote merged 1 commit into
mainfrom
dev-service
Oct 15, 2026
Merged

MrCreosote merged 1 commit into
mainfrom
dev-service

Conversation

@MrCreosote

Copy link
Copy Markdown
Member

Typing obj as Any erased the caller's type on return, so attributes assigned via not_falsy (e.g. self._s3cli = not_falsy(s3cli, ...)) were inferred as Any, breaking IDE go-to-definition/references on their methods.

Typing obj as Any erased the caller's type on return, so attributes
assigned via not_falsy (e.g. self._s3cli = not_falsy(s3cli, ...))
were inferred as Any, breaking IDE go-to-definition/references on
their methods.
@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.73%. Comparing base (4f5b648) to head (0c551e8).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #779   +/-   ##
=======================================
  Coverage   64.73%   64.73%           
=======================================
  Files          77       77           
  Lines        7613     7614    +1     
=======================================
+ Hits         4928     4929    +1     
  Misses       2685     2685           

☔ 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.

@MrCreosote
MrCreosote merged commit eb8bdcc into main Oct 15, 2026
5 checks passed
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