Skip to content

Commit 4391ca4

Browse files
committed
Fix for return type
1 parent 24a41ad commit 4391ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

expression/core/result.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def bind(
352352
return result.bind(mapper)
353353

354354

355-
def dict(source: Result[_TSource, _TError]) -> builtins.dict[str, _TSource | _TError]:
355+
def dict(source: Result[_TSource, _TError]) -> builtins.dict[str, _TSource | _TError | Literal["ok", "error"]]:
356356
return source.dict()
357357

358358

0 commit comments

Comments
 (0)