"""Renal adjustment rules.""" from __future__ import annotations _RENAL_SENSITIVE = {"metformin_like", "nsaid_like"} def is_renal_unsafe(drug: str, egfr: float | None) -> bool: if egfr is None: return False return drug in _RENAL_SENSITIVE and egfr < 30.0