You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/07 09:44:31 UTC
[incubator-ponymail-foal] 04/05: fix typing hints
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 8293c908f721917f950939b01a9020d9502d675a
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Sep 7 11:42:55 2020 +0200
fix typing hints
This can be both JSON and a custom response
---
server/endpoints/email.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/endpoints/email.py b/server/endpoints/email.py
index b2de0b3..aed6703 100644
--- a/server/endpoints/email.py
+++ b/server/endpoints/email.py
@@ -24,13 +24,13 @@ import plugins.mbox
import aiohttp.web
import plugins.aaa
import base64
-
+import typing
async def process(
server: plugins.server.BaseServer,
session: plugins.session.SessionObject,
indata: dict,
-) -> dict:
+) -> typing.Union[dict, aiohttp.web.Response]:
# First, assume permalink and look up the email based on that
email = await plugins.mbox.get_email(session, permalink=indata.get("id"))