diff options
| author | 2019-01-10 17:03:45 +0100 | |
|---|---|---|
| committer | 2019-01-10 17:03:45 +0100 | |
| commit | f113c2bed932f52439b1185b96a03c6e3ae03c8e (patch) | |
| tree | f70de6a17031981a9c337ac21e8e54ced2377628 | |
| parent | Adding watch reason to the big-brother header embeds (diff) | |
Adding type annotations
| -rw-r--r-- | bot/cogs/bigbrother.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/bigbrother.py b/bot/cogs/bigbrother.py index 26d35a97c..b325fa5fe 100644 --- a/bot/cogs/bigbrother.py +++ b/bot/cogs/bigbrother.py @@ -2,7 +2,7 @@ import asyncio import logging import re from collections import defaultdict, deque -from time import strptime +from time import strptime, struct_time from typing import List, Union from aiohttp import ClientError @@ -99,7 +99,7 @@ class BigBrother: return "(no reason specified)" @staticmethod - def _parse_time(infraction): + def _parse_time(infraction: str) -> struct_time: """Takes RFC1123 date_time string and returns time object for sorting purposes""" date_string = infraction["inserted_at"] |