Fixing pep8
This commit is contained in:
@@ -30,6 +30,7 @@ RTVI_PROTOCOL_VERSION = "0.1"
|
|||||||
|
|
||||||
ActionResult = Union[bool, int, float, str, list, dict]
|
ActionResult = Union[bool, int, float, str, list, dict]
|
||||||
|
|
||||||
|
|
||||||
class RTVIServiceOption(BaseModel):
|
class RTVIServiceOption(BaseModel):
|
||||||
name: str
|
name: str
|
||||||
type: Literal["bool", "number", "string", "array", "object"]
|
type: Literal["bool", "number", "string", "array", "object"]
|
||||||
@@ -64,7 +65,8 @@ class RTVIAction(BaseModel):
|
|||||||
action: str
|
action: str
|
||||||
arguments: List[RTVIActionArgument] = []
|
arguments: List[RTVIActionArgument] = []
|
||||||
result: Literal["bool", "number", "string", "array", "object"]
|
result: Literal["bool", "number", "string", "array", "object"]
|
||||||
handler: Callable[["RTVIProcessor", str, Dict[str, Any]], Awaitable[ActionResult]] = Field(exclude=True)
|
handler: Callable[["RTVIProcessor", str, Dict[str, Any]],
|
||||||
|
Awaitable[ActionResult]] = Field(exclude=True)
|
||||||
_arguments_dict: Dict[str, RTVIActionArgument] = PrivateAttr(default={})
|
_arguments_dict: Dict[str, RTVIActionArgument] = PrivateAttr(default={})
|
||||||
|
|
||||||
def model_post_init(self, __context: Any) -> None:
|
def model_post_init(self, __context: Any) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user