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/11 09:16:45 UTC

[incubator-ponymail-foal] branch master updated: add type hint to help mypy

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


The following commit(s) were added to refs/heads/master by this push:
     new 344be6a  add type hint to help mypy
344be6a is described below

commit 344be6a26dada16eb5739e4f484ead58bd364ded
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Sep 11 11:16:33 2020 +0200

    add type hint to help mypy
---
 server/plugins/mbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/plugins/mbox.py b/server/plugins/mbox.py
index 170a1c7..3de426e 100644
--- a/server/plugins/mbox.py
+++ b/server/plugins/mbox.py
@@ -444,7 +444,7 @@ class ThreadConstructor:
     def __init__(self, emails: typing.List[typing.Dict]):
         self.emails = emails
         self.threads: typing.List[dict] = []
-        self.authors = {}
+        self.authors: typing.Dict[str, int] = {}
         self.hashed_by_msg_id: typing.Dict[str, dict] = {}
         self.hashed_by_subject: typing.Dict[str, dict] = {}