You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/12/16 12:50:52 UTC
[incubator-ponymail-foal] branch master updated: Fix up types
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new b1aecf8 Fix up types
b1aecf8 is described below
commit b1aecf8ab525e69ba219c8cfd3f22a16a1fb5e6c
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 12:50:41 2021 +0000
Fix up types
---
test/testauth.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/testauth.py b/test/testauth.py
index 0d2752f..dea784e 100644
--- a/test/testauth.py
+++ b/test/testauth.py
@@ -39,6 +39,7 @@ If there is a problem reading the file, the inbuilt data will be used.
import aiohttp
import plugins.server
+import typing
import uuid
import yaml
@@ -54,7 +55,7 @@ DATA = {
'state': None
}
-async def process(server: plugins.server.BaseServer, session: dict, indata: dict) -> dict:
+async def process(server: plugins.server.BaseServer, session: dict, indata: dict) -> typing.Union[aiohttp.web.Response, dict]:
print('INDATA', indata)
redirect_uri = indata.get('redirect_uri')
code = indata.get('code')