Skip to content

Commit 2f8e6eb

Browse files
authored
CLN: CI (#212) (#1127)
Co-authored-by: JHM Darbyshire (M1) <[email protected]>
1 parent 56126e2 commit 2f8e6eb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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] # this is [Hashable, Any] not [str, Any]
9494

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

python/rateslib/instruments/fx_options/risk_reversal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def npv(
319319
if local:
320320
df = DataFrame(results).fillna(0.0)
321321
df_sum = df.sum()
322-
_: DualTypes | dict[str, DualTypes] = df_sum.to_dict()
322+
_: DualTypes | dict[str, DualTypes] = df_sum.to_dict() # type: ignore[assignment]
323323
else:
324324
_ = sum(results) # type: ignore[arg-type]
325325
return _

python/rateslib/instruments/portfolio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def npv(
140140
# Aggregate results:
141141
_ = DataFrame(results).fillna(0.0)
142142
_ = _.sum()
143-
local_npv = _.to_dict()
143+
local_npv = _.to_dict() # type: ignore[assignment]
144144

145145
# ret = {}
146146
# for result in results:

python/rateslib/solver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ def delta(
17401740
names=["type", "solver", "label"],
17411741
)
17421742
indexes = {"instruments": inst_idx, "fx": fx_idx}
1743-
r_idx = inst_idx.append(fx_idx) # type: ignore[no-untyped-call]
1743+
r_idx = inst_idx.append(fx_idx)
17441744
c_idx = MultiIndex.from_tuples([], names=["local_ccy", "display_ccy"])
17451745
df = DataFrame(None, index=r_idx, columns=c_idx)
17461746
for key, array in container.items():
@@ -1999,7 +1999,7 @@ def gamma(
19991999
names=["local_ccy", "display_ccy", "type", "solver", "label"],
20002000
)
20012001
if base is not NoInput.blank:
2002-
ridx = ridx.append( # type: ignore[no-untyped-call]
2002+
ridx = ridx.append(
20032003
MultiIndex.from_tuples(
20042004
[("all", base) + _ for _ in inst_keys + fx_keys],
20052005
names=["local_ccy", "display_ccy", "type", "solver", "label"],

0 commit comments

Comments
 (0)