- This file was added.
|from enum import Enum|
|from typing import NamedTuple, Optional|
|def __init__(self, *args, body=None):|
|self.body = body|
|SUCCESS = "SUCCESS"|
|FAILURE = "FAILURE"|
|message: Optional[str] = None|
This is a little bit confusing to me. We can give a failure message if the status is success?
Also, is the "optional" to the right of "Optional[str]" something that sphinx knows how to deal with?
sandyryza: This is a little bit confusing to me. We can give a failure message if the status is success?
you're absolutely right that was a typo - meant for it to be FAILURE. As far as sphinx I think the optional part is part of the sphinx auto generated stuff.
sidkmenon: you're absolutely right that was a typo - meant for it to be `FAILURE`. As far as sphinx I…