Skip to content

Commit 9a4df03

Browse files
committed
FIX: fix constructor interface type definition
1 parent 0750a22 commit 9a4df03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/safetywrap/_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def some_if(predicate: t.Callable[[T], bool], value: T) -> "Option[T]":
244244
raise NotImplementedError
245245

246246
@staticmethod
247-
def collect(options: t.Iterable["Option[T]"]) -> "Option[t.Tuple[T]]":
247+
def collect(options: t.Iterable["Option[T]"]) -> "Option[t.Tuple[T, ...]]":
248248
"""Collect a series of Options into single Option.
249249
250250
If all options are `Some[T]`, the result is `Some[Tuple[T]]`. If

0 commit comments

Comments
 (0)