From e2414121af16474744d012cdb8466de6ae3136e4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 22 Jul 2018 14:23:39 +0200 Subject: Add type hints here and there --- poezio/pep.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'poezio/pep.py') diff --git a/poezio/pep.py b/poezio/pep.py index a211b09b..52cc4cd5 100644 --- a/poezio/pep.py +++ b/poezio/pep.py @@ -3,6 +3,8 @@ Collection of mappings for PEP moods/activities extracted directly from the XEP """ +from typing import Dict + MOODS = { 'afraid': 'Afraid', 'amazed': 'Amazed', @@ -84,7 +86,7 @@ MOODS = { 'undefined': 'Undefined', 'weak': 'Weak', 'worried': 'Worried' -} +} # type: Dict[str, str] ACTIVITIES = { 'doing_chores': { @@ -202,4 +204,4 @@ ACTIVITIES = { 'studying': 'Studying', 'other': 'Other', } -} +} # type: Dict[str, Dict[str, str]] -- cgit v1.2.3