commit | 9f77a9cc083ff15933d43ceff10c4a327975d88f | [log] [tgz] |
---|---|---|
author | Daniel Gruno <humbedooh@apache.org> | Tue Sep 07 16:33:16 2021 -0500 |
committer | GitHub <noreply@github.com> | Tue Sep 07 16:33:16 2021 -0500 |
tree | e2934aa773ad04e614f8311c0a9c7d31490eb5c0 | |
parent | b8ced73ac8bc68f94b67288944aa0132088c79c1 [diff] |
add type hints
diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py index da05f4a..608c43d 100644 --- a/server/endpoints/mbox.py +++ b/server/endpoints/mbox.py
@@ -27,7 +27,7 @@ import asyncio.exceptions -async def convert_source(session, email): +async def convert_source(session: plugins.session.SessionObject, email: dict): source = await plugins.messages.get_source(session, permalink=email.get("dbid", email["mid"])) if source: source_as_text = source["_source"]["source"]