Skip to content

Commit

Permalink
added stacklevel to deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aGuyLearning committed Nov 27, 2024
1 parent 82a6e3c commit c604074
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ehrapy/tools/_sa.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def kmf(
warnings.warn(
"This function is deprecated and will be removed in the next release. Use `kaplan_meier` instead.",
DeprecationWarning,
stacklevel=2
)
kmf = KaplanMeierFitter()
if censoring == "None" or "right":
Expand Down

0 comments on commit c604074

Please sign in to comment.