Add full type annotations and black formatting across all modules
Annotated all functions with mypy --strict-compatible types (-> None, dict[str, Any], Generator types, etc.), added # type: ignore for untyped third-party libs (lxml), and reformatted with black. All 18 source files now pass mypy --strict with zero errors. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
453d6244ec
commit
13c4341f3a
14 changed files with 1802 additions and 974 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import os
|
||||
|
||||
# Directory containing TfL reference data (TransXChange XML files etc.)
|
||||
TFL_DATA_DIR = os.path.expanduser('~/lib/data/tfl')
|
||||
TFL_DATA_DIR = os.path.expanduser("~/lib/data/tfl")
|
||||
|
||||
# Directory for caching scraped train times
|
||||
CACHE_DIR = os.path.expanduser('~/lib/data/tfl/cache')
|
||||
CACHE_DIR = os.path.expanduser("~/lib/data/tfl/cache")
|
||||
|
||||
# TransXChange timetable file for the Circle Line
|
||||
CIRCLE_LINE_XML = os.path.join(TFL_DATA_DIR, 'output_txc_01CIR_.xml')
|
||||
CIRCLE_LINE_XML = os.path.join(TFL_DATA_DIR, "output_txc_01CIR_.xml")
|
||||
|
||||
# Default connection window (minutes) between Paddington arrival and St Pancras departure
|
||||
DEFAULT_MIN_CONNECTION = 70
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue