Skip to content

Commit

Permalink
TYP/REF: securities / refactor IndexFixedLeg to separate periods and …
Browse files Browse the repository at this point in the history
…Bond.ytm to use separate periods (#637)

Co-authored-by: JHM Darbyshire (win11) <[email protected]>
  • Loading branch information
attack68 and attack68 authored Jan 17, 2025
1 parent d64573e commit 2312852
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 150 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ packages = [
"rateslib"
]
exclude = [
"/instruments/bonds/securities.py",
# "/instruments/bonds/securities.py",
"/instruments/fx_volatility.py",
# "/instruments/generics.py",
# "/instruments/rates/inflation.py",
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/bonds/futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def cms(
# build a curve for pricing
today = self.basket[0].leg1.schedule.calendar.lag(
settlement,
-self.basket[0].kwargs["settle"], # type: ignore[arg-type, operator]
-self.basket[0].kwargs["settle"],
False,
)
unsorted_nodes = {
Expand Down
Loading

0 comments on commit 2312852

Please sign in to comment.