[changed] Make the Ok type covariant in regard to its wrapped type T.
Likewise for Err in regard to E. This should result in more intuitive
type checking behaviour. For instance, Err[TypeError] will get recognized
as a subtype of Err[Exception] by type checkers. See PEP 438 for a
detailed explanation of covariance and its implications.
[added] Add support for Python 3.10 pattern matching (#47)
[changed]Ok and Err now define __slots__ to save memory (#55, #58)
[changed] The generic type of UnwrapError.result now explicitly specifies Any (#67)
[0.6.0] - 2021-03-17
IMPORTANT: This release a big API refactoring to make the API more type
safe. Unfortunately this means some breaking changes. Please check out
MIGRATING.md, it will guide you through the necessary changes in your
codebase.
[changed] Split result type into Ok and Err classes (#17, #27)
[deprecated] Python 3.4 support is deprecated and will be removed in the next
release
[0.5.0] - 2020-03-03
[added] Implement map, map_err, map_or and map_or_else (#19)
[added] Add unwrap_err and expect_err methods (#26)
[changed] Type annotations: Change parameter order
from Result[E, T] to Result[T, E] to match Rust/OCaml/F# (#7)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on result to permit the latest version.
Changelog
Sourced from result's changelog.
... (truncated)
Commits
bcdbc3f
Release v0.9.08e05fd2
Type annotation cleanup (#106)9f5da81
Add support for Python 3.11 (#107)f0e6f11
Change unreleased version to "0.9.0.dev0"0ec74d2
Add installation instructions (#104)50ef388
Fix up some minor bits in unwrap_or_raise documentation (#103)5d43f3b
Add unwrap_or_raise() (#95)b9e33ad
No longer pin development dependencies (#102)183beee
Drop broken pytest-flake8 plugin; run flake8 directly in CI (#101)eb9350f
Remove * from expected mypy output (#96)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)