diff options
| author | 2019-11-01 07:10:35 +0100 | |
|---|---|---|
| committer | 2019-11-01 06:10:35 +0000 | |
| commit | 135020b42f799976e734125a59efb34a997b7698 (patch) | |
| tree | 70ec5d21be34914e777eb86bf4ddc7a8414b2994 /modules | |
| parent | update CHANGELOG.md (diff) | |
| signature | ||
Add .travis.yml to run mypy. (#192)
* Add typing to modules/tfl.py.
* Add .travis.yml to run mypy.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/tfl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tfl.py b/modules/tfl.py index 641ab754..4b03adc7 100644 --- a/modules/tfl.py +++ b/modules/tfl.py @@ -1,6 +1,6 @@ #--depends-on commands -import collections, datetime, re +import collections, datetime, re, typing from src import ModuleManager, utils URL_BUS = "https://api.tfl.gov.uk/StopPoint/%s/Arrivals" @@ -22,7 +22,7 @@ PLATFORM_TYPES = ["Northbound", "Southbound", "Eastbound", "Westbound", "Inner R class Module(ModuleManager.BaseModule): _name = "TFL" - result_map = {} + result_map: typing.Dict[int, typing.Dict[int, typing.Dict[str, typing.Any]]] = {} def vehicle_span(self, arrival_time, human=True): vehicle_due_iso8601 = arrival_time |
