Several function signatures use dict[str : pd.DataFrame] (a colon — slice
syntax) where dict[str, pd.DataFrame] (a comma — generic parameters) is
intended. Python doesn't validate generic parameters at runtime, so this is
silent: the runtime behaviour is unaffected, but type checkers see a slice
object as the parameter and any caller passing a properly-typed dict gets
flagged as a mismatch.
Affected locations:
- src/ispypsa/templater/manual_tables.py:8
- src/ispypsa/templater/dynamic_generator_properties.py:250, 294, 335, 430
- src/ispypsa/pypsa_build/build.py:22
- src/ispypsa/results/extract.py:79
- src/ispypsa/data_fetch/csv_read_write.py:6, 35
Fix is mechanical: replace the colon with a comma in each annotation.
Several function signatures use
dict[str : pd.DataFrame](a colon — slicesyntax) where
dict[str, pd.DataFrame](a comma — generic parameters) isintended. Python doesn't validate generic parameters at runtime, so this is
silent: the runtime behaviour is unaffected, but type checkers see a slice
object as the parameter and any caller passing a properly-typed dict gets
flagged as a mismatch.
Affected locations:
Fix is mechanical: replace the colon with a comma in each annotation.