Skip to content

Fix {Success, Failure}.swap returning Any - #2562

Merged
sobolevn merged 1 commit into
dry-python:masterfrom
jorenham:typing/result-any
Oct 27, 2026
Merged

sobolevn merged 1 commit into
dry-python:masterfrom
jorenham:typing/result-any

Conversation

@jorenham

Copy link
Copy Markdown
Contributor

I have made fixed indented more things!

After #2559, I found two other cases of shallow-indentation-induced-Any-returns. So yet again, I dramatically slammed tab on my digital typewriter.

Checklist

  • I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc)
  • I have created at least one test case for the changes I have made
  • I have updated the documentation for the changes I have made
  • I have added my changes to the CHANGELOG.md

Related issues

None 🤷


🙏 Please, if you or your company finds dry-python valuable, help us sustain the project by sponsoring it transparently on https://github.com/sponsors/dry-python. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.

@codspeed

codspeed Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 22 untouched benchmarks


Comparing jorenham:typing/result-any (8c89c52) with master (9808f5e)

Open in CodSpeed

@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (82ef3ef) to head (8c89c52).
⚠️ Report is 654 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##            master     #2562    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           80        82     +2     
  Lines         2485      2693   +208     
  Branches       437        45   -392     
==========================================
+ Hits          2485      2693   +208     

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

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@sobolevn
sobolevn merged commit fde4584 into dry-python:master Oct 27, 2026
27 checks passed
@jorenham
jorenham deleted the typing/result-any branch October 27, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants