Skip to content

IINTS-AF SDK v1.5.15 Release Notes

Release date: 2026-06-13

v1.5.15 is a patch release for the scientific-overhaul branch. It fixes the CI mypy failure introduced by the advanced metabolic model extension.

Fixed

AdvancedMetabolicModel mypy override compatibility

The AdvancedMetabolicModel.update() method now preserves the BergmanPatientModel.update() public signature:

def update(
    self,
    time_step: float = 0.0,
    delivered_insulin: float = 0.0,
    carb_intake: float = 0.0,
    delivered_glucagon_mg: float = 0.0,
    current_time: float | None = None,
    **kwargs: Any,
) -> float:
    ...

Advanced-only inputs remain supported through keyword arguments:

patient.update(
    dt_minutes=5.0,
    delivered_insulin=0.8,
    fat_intake=5.0,
    protein_intake=8.0,
    current_time_minutes=15.0,
)

This resolves:

Signature of "update" incompatible with supertype "BergmanPatientModel" [override]

Verification

MYPY_CACHE_DIR=/tmp/iints-mypy-cache PYTHONPATH=src python3 -m mypy src/iints/
# Success: no issues found in 182 source files

PYTHONPATH=src python3 -m pytest -q -p no:cacheprovider \
  tests/core/test_advanced_metabolic_model.py \
  tests/test_scientific_fidelity.py
# 8 passed

Why this matters

v1.5.14 contains the scientific realism hardening work, but its release tag still has the incompatible method signature. v1.5.15 keeps the same functionality and makes the type contract CI-clean.