Skip to content

Commit e749bc5

Browse files
authored
REF: make Defaults a singleton (#218) (#1136)
Co-authored-by: JHM Darbyshire (M1) <[email protected]>
1 parent f0f6bf1 commit e749bc5

File tree

6 files changed

+294
-191
lines changed

6 files changed

+294
-191
lines changed

python/rateslib/_spec_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _get_kwargs(spec: str) -> dict[str, Any]:
9090
d["roll"] = _map_str_int(d["roll"])
9191
if "leg2_roll" in d:
9292
d["leg2_roll"] = _map_str_int(d["leg2_roll"])
93-
return d
93+
return d # type: ignore[return-value]
9494

9595
INSTRUMENT_SPECS = {k: _get_kwargs(k) for k in df.columns[4:]}
9696

0 commit comments

Comments
 (0)