- This file was added.
|from enum import Enum|
|from typing import NamedTuple, Optional|
|"""This enum describes the status of a GraphQL mutation to reload a Dagster repository location|
|Enum (str): can be either `ReloadRepositoryLocationStatus.SUCCESS`|
|SUCCESS = "SUCCESS"|
|FAILURE = "FAILURE"|
|"""This class gives information about the result of reloading|
|a Dagster repository location with a GraphQL mutation.|
|status (ReloadRepositoryLocationStatus): The status of the reload repository location mutation|
|message (Optional[str], optional): the failure message/reason if|
|`status == ReloadRepositoryLocationStatus.FAILURE`. Defaults to 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…
|message: Optional[str] = None|