Explorar o código

Allow attachment body to be an async callable

Kirk Trombley %!s(int64=3) %!d(string=hai) anos
pai
achega
cd3512b3d9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rollbot/rollbot/types.py

+ 1 - 1
rollbot/rollbot/types.py

@@ -25,7 +25,7 @@ __all__ = [
 @dataclass
 class Attachment:
     name: str
-    body: Union[str, bytes, None]
+    body: Union[str, bytes, None, Callable[[], Coroutine[Any, None, Any]]]
 
 
 @dataclass