We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd24158 commit ddc5cadCopy full SHA for ddc5cad
1 file changed
ResultContainer/__init__.py
@@ -1330,17 +1330,8 @@ def str(self):
1330
return f'Ok("{self._val}")'
1331
return f"Ok({self._val})"
1332
else:
1333
- # msg = " | ".join(f"{m}" if m != "" else "???" for m in self._val.msg)
1334
- # return f'Err("{" | ".join(f"{m}" for m in self._val.msg)}")'
1335
return f'Err("{" | ".join(f"{m}" for m in self._val.msg if m != "")}")'
1336
1337
- # def _empty_error(self):
1338
- # if self._success is None:
1339
- # raise ResultErr(
1340
- # "Result object is empty!\nIt must be associated with an Ok(value) or Err(e) to use any methods.",
1341
- # add_traceback=False,
1342
- # )
1343
-
1344
def _operator_overload_prep(self, b, operation: str):
1345
# Checks and returns:
1346
# a.err and b.err -> True and a&b error
0 commit comments