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

Issue 1267 - Remove .success_type and .failure_type #1677

Merged
merged 7 commits into from
Sep 1, 2023
Merged

Issue 1267 - Remove .success_type and .failure_type #1677

merged 7 commits into from
Sep 1, 2023

Conversation

ducdetronquito
Copy link
Contributor

I have made things!

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

The process to start contributing is very clear: it's nice when it's easy to get started :)

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tests/test_maybe/test_maybe_base.py Outdated Show resolved Hide resolved
tests/test_result/test_result_base.py Outdated Show resolved Hide resolved
typesafety/test_maybe/test_maybe_type_cast.yml Outdated Show resolved Hide resolved
typesafety/test_result/test_result_type_cast.yml Outdated Show resolved Hide resolved
Copy link
Member

@thepabloaguilar thepabloaguilar left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @ducdetronquito!

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #1677 (5b3796f) into master (a26e9a3) will not change coverage.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master     #1677   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           80        80           
  Lines         2497      2485   -12     
  Branches       437       437           
=========================================
- Hits          2497      2485   -12     
Files Changed Coverage Δ
returns/context/requires_context_ioresult.py 100.00% <ø> (ø)
returns/context/requires_context_result.py 100.00% <ø> (ø)
returns/functions.py 100.00% <ø> (ø)
returns/future.py 100.00% <ø> (ø)
returns/_internal/futures/_future_result.py 100.00% <100.00%> (ø)
returns/_internal/futures/_reader_future_result.py 100.00% <100.00%> (ø)
returns/io.py 100.00% <100.00%> (ø)
returns/maybe.py 100.00% <100.00%> (ø)
returns/result.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ducdetronquito
Copy link
Contributor Author

Hi @thepabloaguilar ,

Thank you for your review !

I made the requested changes in a dedicated commit to ease your review but if you prefer I can edit the original commits.

Have a nice day !

CHANGELOG.md Outdated

### Misc

- *Breaking*: Remove `Result.success_type` and `Result.failure_type`
Copy link
Member

Choose a reason for hiding this comment

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

Let's list all removed items in a single point

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made the change in a new commit

CHANGELOG.md Outdated
@@ -6,6 +6,12 @@ incremental in minor, bugfixes only are patches.
See [0Ver](https://0ver.org/).


## 0.23.0 WIP
Copy link
Member

Choose a reason for hiding this comment

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

Let's make it 1.0.0 WIP :)

Copy link
Member

Choose a reason for hiding this comment

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

Oh, 1.0.0 already? 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done deal :D

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thank you!

@sobolevn sobolevn merged commit 8907464 into dry-python:master Sep 1, 2023
10 checks passed
@ducdetronquito ducdetronquito deleted the issue-1267 branch September 1, 2023 08:17
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.

Remove .success_type and .failure_type
3 participants