Add type annotation to mention.py, redis_utils.py, timestamp.py, user_agent.py

Some functions in models.py had input typed as int when they needed to be typed as datetime.datetime
This commit is contained in:
Max
2016-06-03 14:32:55 -07:00
committed by Tim Abbott
parent 1148f6ff8a
commit 0f4673ae3b
5 changed files with 8 additions and 2 deletions

View File

@@ -7,4 +7,5 @@ find_mentions = r'(?<![^\s\'\"\(,:<])@(?:\*\*([^\*]+)\*\*|(\w+))'
wildcards = ['all', 'everyone']
def user_mention_matches_wildcard(mention):
# type: (str) -> bool
return mention in wildcards