Skip to content

Commit 5d311ab

Browse files
[pre-commit.ci] pre-commit autoupdate (#2038)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/woodruffw/zizmor-pre-commit: v1.3.0 → v1.3.1](zizmorcore/zizmor-pre-commit@v1.3.0...v1.3.1) - [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6](astral-sh/ruff-pre-commit@v0.9.4...v0.9.6) * [pre-commit.ci] auto fixes from pre-commit.com hooks * Update test_curry_generics.yml * Update test_curry_generics.yml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: sobolevn <[email protected]>
1 parent 2f475b7 commit 5d311ab

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
hooks:
2222
- id: actionlint
2323
- repo: https://github.com/woodruffw/zizmor-pre-commit
24-
rev: v1.3.0
24+
rev: v1.3.1
2525
hooks:
2626
- id: zizmor
2727
- repo: https://github.com/shellcheck-py/shellcheck-py
@@ -33,7 +33,7 @@ repos:
3333
hooks:
3434
- id: pyproject-fmt
3535
- repo: https://github.com/astral-sh/ruff-pre-commit
36-
rev: v0.9.4
36+
rev: v0.9.6
3737
hooks:
3838
- id: ruff
3939
args: ["--exit-non-zero-on-fix"]

returns/interfaces/specific/future_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from collections.abc import Awaitable, Callable
1313
from typing import TYPE_CHECKING, TypeVar
1414

15-
from typing_extensions import Never
15+
from typing_extensions import Never, Self
1616

1717
from returns.interfaces.specific import future, ioresult
1818
from returns.primitives.hkt import KindN
@@ -77,9 +77,9 @@ def from_failed_future(
7777

7878
@classmethod
7979
def from_future_result(
80-
cls: type[_FutureResultLikeType],
80+
cls,
8181
inner_value: FutureResult[_ValueType, _ErrorType],
82-
) -> KindN[_FutureResultLikeType, _ValueType, _ErrorType, _ThirdType]:
82+
) -> KindN[Self, _ValueType, _ErrorType, _ThirdType]:
8383
"""Creates container from ``FutureResult`` instance."""
8484

8585

typesafety/test_curry/test_curry/test_curry_generics.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@
4949
...
5050
5151
x: List[int]
52+
y: List[str]
5253
53-
reveal_type(zero) # N: Revealed type is "Overload(def (arg: builtins.int) -> def [T] (other: builtins.list[T`-1]) -> T`-1, def [T] (arg: builtins.int, other: builtins.list[T`-1]) -> T`-1)"
54-
reveal_type(zero(1)) # N: Revealed type is "def [T] (other: builtins.list[T`2]) -> T`2"
5554
reveal_type(zero(1)(x)) # N: Revealed type is "builtins.int"
5655
reveal_type(zero(1, x)) # N: Revealed type is "builtins.int"
56+
reveal_type(zero(1)(y)) # N: Revealed type is "builtins.str"
57+
reveal_type(zero(1, y)) # N: Revealed type is "builtins.str"
5758
5859
5960
# TODO: enable and fix our plugin

0 commit comments

Comments
 (0)