Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ See [0Ver](https://0ver.org/).
### Features

- Add `python3.15` support
- Add `mypy>=1.19,<2.5` support


## 0.29.1 WIP
Expand Down
438 changes: 253 additions & 185 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ python = "^3.11"
typing-extensions = ">=4.0,<5.0"
pytest = {version = ">=8,<10", optional = true}
hypothesis = {version = "^6.151", optional = true}
mypy = {version = ">=1.19,<2.4", optional = true}
mypy = {version = ">=1.19,<2.5", optional = true}

[tool.poetry.extras]
compatible-mypy = ["mypy"]
Expand Down
6 changes: 3 additions & 3 deletions typesafety/test_future/test_future_container/test_do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
for x in Future.from_value(1)
)
out: |
main:3: error: Argument 1 to "do" of "Future" has incompatible type "Generator[Any, None, None]"; expected "AsyncGenerator[Never, None]" [arg-type]
main:4: error: Argument 1 to "do" of "Future" has incompatible type "Generator[Any, None, None]"; expected "AsyncGenerator[Never, None]" [arg-type]
main:5: error: "Future[int]" has no attribute "__iter__"; maybe "__aiter__"? (not iterable) [attr-defined]
main:5: note: Maybe you forgot to use "await"?

Expand All @@ -30,8 +30,8 @@
main: |
from returns.future import Future

Future.do( # E: Using "if" conditions inside a generator is not allowed [misc]
x + y
Future.do(
x + y # E: Using "if" conditions inside a generator is not allowed [misc]
async for x in Future.from_value(1)
async for y in Future.from_value(2.5)
if y > 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
for first in FutureSuccess(1)
)
out: |
main:3: error: Argument 1 to "do" of "FutureResult" has incompatible type "Generator[Any, None, None]"; expected "AsyncGenerator[Never, None]" [arg-type]
main:4: error: Argument 1 to "do" of "FutureResult" has incompatible type "Generator[Any, None, None]"; expected "AsyncGenerator[Never, None]" [arg-type]
main:5: error: "FutureResult[int, Any]" has no attribute "__iter__"; maybe "__aiter__"? (not iterable) [attr-defined]
main:5: note: Maybe you forgot to use "await"?

Expand Down Expand Up @@ -84,8 +84,8 @@
main: |
from returns.future import FutureSuccess, FutureResult

FutureResult.do( # E: Using "if" conditions inside a generator is not allowed [misc]
x + y
FutureResult.do(
x + y # E: Using "if" conditions inside a generator is not allowed [misc]
async for x in FutureSuccess(1)
async for y in FutureSuccess(2.5)
if y > 5
Expand Down
4 changes: 2 additions & 2 deletions typesafety/test_io/test_io_container/test_do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
main: |
from returns.io import IO

IO.do( # E: Using "if" conditions inside a generator is not allowed [misc]
x + y
IO.do(
x + y # E: Using "if" conditions inside a generator is not allowed [misc]
for x in IO(1)
for y in IO(2.5)
if y > 5
Expand Down
4 changes: 2 additions & 2 deletions typesafety/test_io/test_ioresult_container/test_do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
main: |
from returns.io import IOSuccess, IOResult

IOResult.do( # E: Using "if" conditions inside a generator is not allowed [misc]
x + y
IOResult.do(
x + y # E: Using "if" conditions inside a generator is not allowed [misc]
for x in IOSuccess(1)
for y in IOSuccess(2.5)
if y > 5
Expand Down
4 changes: 2 additions & 2 deletions typesafety/test_maybe/test_do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
main: |
from returns.maybe import Maybe

Maybe.do( # E: Using "if" conditions inside a generator is not allowed [misc]
x + y
Maybe.do(
x + y # E: Using "if" conditions inside a generator is not allowed [misc]
for x in Maybe.from_value(1)
for y in Maybe.from_value(2.5)
if y > 5
Expand Down
4 changes: 2 additions & 2 deletions typesafety/test_result/test_do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
main: |
from returns.result import Success, Result

Result.do( # E: Using "if" conditions inside a generator is not allowed [misc]
x + y
Result.do(
x + y # E: Using "if" conditions inside a generator is not allowed [misc]
for x in Success(1)
for y in Success(2.5)
if y > 5
Expand Down
Loading