Skip to content

Commit 49a3c2f

Browse files
RomanMIzulinromanmatveevskysobolevn
authored
Add annotation to Unwrappable type (#1896)
Co-authored-by: Roman Matveev <[email protected]> Co-authored-by: sobolevn <[email protected]>
1 parent 1a5639f commit 49a3c2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

returns/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import ClassVar
1+
from typing import Any
22

33
from returns._internal.pipeline.flow import flow as flow
44
from returns._internal.pipeline.managed import managed as managed
@@ -8,7 +8,7 @@
88

99

1010
# TODO: add overloads for specific types, so it can narrow them with `TypeIs`
11-
def is_successful(container: Unwrappable) -> bool:
11+
def is_successful(container: Unwrappable[Any, Any]) -> bool:
1212
"""
1313
Determines if a container was successful or not.
1414

0 commit comments

Comments
 (0)