Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dev = [
"coverage>=7.6.1,<8.0",
# style/linting
"ruff>=0.6.3,<1.0",
"mypy>=1.13,<1.18",
"mypy>=1.13,<1.20",
"pandas-stubs>2.0,<3.0",
# doc building
"sphinx>=8.0,<8.2",
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/data/fixings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2431,7 +2431,7 @@ def _maybe_get_rate_series_from_curve(
return rate_series


def _leg_fixings_to_list(rate_fixings: LegFixings, n_periods: int) -> list[PeriodFixings]: # type: ignore[type-var]
def _leg_fixings_to_list(rate_fixings: LegFixings, n_periods: int) -> list[PeriodFixings]:
"""Perform a conversion of 'LegRateFixings' into a list of PeriodFixings."""
if isinstance(rate_fixings, NoInput):
# NoInput is converted to a list of NoInputs
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/bonds/float_rate_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def __init__(
# rate params
float_spread: DualTypes_ = NoInput(0),
spread_compound_method: str_ = NoInput(0),
rate_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
rate_fixings: LegFixings = NoInput(0),
fixing_method: str_ = NoInput(0),
method_param: int_ = NoInput(0),
fixing_frequency: Frequency | str_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/bonds/index_fixed_rate_bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def __init__(
index_base: DualTypes_ = NoInput(0),
index_lag: int_ = NoInput(0),
index_method: IndexMethod | str_ = NoInput(0),
index_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
index_fixings: LegFixings = NoInput(0),
# rate parameters
fixed_rate: DualTypes_ = NoInput(0),
# meta parameters
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/fra.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def __init__(
notional: DualTypes_ = NoInput(0),
# rate parameters
fixed_rate: DualTypes_ = NoInput(0),
leg2_rate_fixings: FixingsRates_ = NoInput(0), # type: ignore[type-var]
leg2_rate_fixings: FixingsRates_ = NoInput(0),
leg2_method_param: int_ = NoInput(0),
leg2_fixing_frequency: Frequency | str_ = NoInput(0),
leg2_fixing_series: FloatRateSeries | str_ = NoInput(0),
Expand Down
4 changes: 2 additions & 2 deletions python/rateslib/instruments/iirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ def __init__(
index_base: DualTypes_ = NoInput(0),
index_lag: int_ = NoInput(0),
index_method: IndexMethod | str_ = NoInput(0),
index_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
index_fixings: LegFixings = NoInput(0),
# rate params
fixed_rate: DualTypes_ = NoInput(0),
leg2_float_spread: DualTypes_ = NoInput(0),
leg2_spread_compound_method: str_ = NoInput(0),
leg2_rate_fixings: FixingsRates_ = NoInput(0), # type: ignore[type-var]
leg2_rate_fixings: FixingsRates_ = NoInput(0),
leg2_fixing_method: str_ = NoInput(0),
leg2_method_param: int_ = NoInput(0),
# meta params
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/irs.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def __init__(
fixed_rate: DualTypes_ = NoInput(0),
leg2_float_spread: DualTypes_ = NoInput(0),
leg2_spread_compound_method: str_ = NoInput(0),
leg2_rate_fixings: FixingsRates_ = NoInput(0), # type: ignore[type-var]
leg2_rate_fixings: FixingsRates_ = NoInput(0),
leg2_fixing_method: str_ = NoInput(0),
leg2_method_param: int_ = NoInput(0),
leg2_fixing_frequency: Frequency | str_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/ndf.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def __init__(
eom: bool_ = NoInput(0),
# rate
fx_rate: DualTypes_ = NoInput(0),
fx_fixings: PeriodFixings = NoInput(0), # type: ignore[type-var]
fx_fixings: PeriodFixings = NoInput(0),
leg2_fx_fixings: PeriodFixings = NoInput(0),
reversed: bool = False, # noqa: A002
leg2_reversed: bool = False,
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/sbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def __init__(
# rate parameters
float_spread: DualTypes_ = NoInput(0),
spread_compound_method: str_ = NoInput(0),
rate_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
rate_fixings: LegFixings = NoInput(0),
fixing_method: str_ = NoInput(0),
method_param: int_ = NoInput(0),
fixing_frequency: Frequency | str_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/stir_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def __init__(
price: DualTypes_ = NoInput(0),
leg2_float_spread: DualTypes_ = NoInput(0),
leg2_spread_compound_method: str_ = NoInput(0),
leg2_rate_fixings: FixingsRates_ = NoInput(0), # type: ignore[type-var]
leg2_rate_fixings: FixingsRates_ = NoInput(0),
leg2_fixing_method: str_ = NoInput(0),
leg2_method_param: int_ = NoInput(0),
leg2_fixing_frequency: Frequency | str_ = NoInput(0),
Expand Down
4 changes: 2 additions & 2 deletions python/rateslib/instruments/xcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,12 @@ def __init__(
fixed_rate: DualTypes_ = NoInput(0),
float_spread: DualTypes_ = NoInput(0),
spread_compound_method: str_ = NoInput(0),
rate_fixings: FixingsRates_ = NoInput(0), # type: ignore[type-var]
rate_fixings: FixingsRates_ = NoInput(0),
fixing_method: str_ = NoInput(0),
method_param: int_ = NoInput(0),
fixing_frequency: Frequency | str_ = NoInput(0),
fixing_series: FloatRateSeries | str_ = NoInput(0),
fx_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
fx_fixings: LegFixings = NoInput(0),
leg2_fixed: bool = False,
leg2_mtm: bool = False,
leg2_fixed_rate: DualTypes_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/zcis.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __init__(
leg2_index_base: DualTypes_ = NoInput(0),
leg2_index_lag: int_ = NoInput(0),
leg2_index_method: IndexMethod | str_ = NoInput(0),
leg2_index_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
leg2_index_fixings: LegFixings = NoInput(0),
# meta parameters
curves: CurvesT_ = NoInput(0),
spec: str_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/instruments/zcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def __init__(
fixed_rate: DualTypes_ = NoInput(0),
leg2_float_spread: DualTypes_ = NoInput(0),
leg2_spread_compound_method: str_ = NoInput(0),
leg2_rate_fixings: FixingsRates_ = NoInput(0), # type: ignore[type-var]
leg2_rate_fixings: FixingsRates_ = NoInput(0),
leg2_fixing_method: str_ = NoInput(0),
leg2_method_param: int_ = NoInput(0),
leg2_fixing_frequency: Frequency | str_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/legs/fixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def __init__(
currency: str_ = NoInput(0),
# non-deliverable
pair: str_ = NoInput(0),
fx_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
fx_fixings: LegFixings = NoInput(0),
mtm: bool = False,
# period
convention: str_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/legs/float.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __init__(
currency: str_ = NoInput(0),
# non-deliverable
pair: str_ = NoInput(0),
fx_fixings: LegFixings = NoInput(0), # type: ignore[type-var]
fx_fixings: LegFixings = NoInput(0),
mtm: bool = False,
# period
convention: str_ = NoInput(0),
Expand Down
2 changes: 1 addition & 1 deletion python/rateslib/periods/parameters/rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

def _init_FloatRateParams(
_float_spread: DualTypes_,
_rate_fixings: PeriodFixings, # type: ignore[type-var]
_rate_fixings: PeriodFixings,
_fixing_method: FloatFixingMethod | str_,
_method_param: int_,
_spread_compound_method: SpreadCompoundMethod | str_,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nbsphinx>=0.9.5,<1.0
pickleshare>=0.7.5,<1.0

ruff>=0.11.0,<1.0 # for code linting
mypy>=1.16.0,<1.18 # for type checking
mypy>=1.16.0,<1.20 # for type checking
pandas-stubs>=2.0,<3.0

jupyterlab>=4.0,<5.0
Expand Down
Loading