Skip to content

Type hints for the module conf#1719

Merged
MaxHalford merged 5 commits intoonline-ml:mainfrom
e10e3:typing-module-conf
Nov 11, 2025
Merged

Type hints for the module conf#1719
MaxHalford merged 5 commits intoonline-ml:mainfrom
e10e3:typing-module-conf

Conversation

@e10e3
Copy link
Contributor

@e10e3 e10e3 commented Nov 10, 2025

Like with #1698, this module is relatively standalone, making type-checking changes easy.

RegressionJackknife is now generic over the model it wraps because it inherits from base.Wrapper which is already generic.

RegressionJackknife.predict_one has overloads because it returns a different type of data depending on the value of the with_interval parameter.

I added a few return type hints in stats.Quantile for the methods called in the module.

@MaxHalford MaxHalford merged commit 677efb0 into online-ml:main Nov 11, 2025
5 checks passed
@e10e3 e10e3 deleted the typing-module-conf branch November 11, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants