Skip to content

Add missing contextlib.contextmanager to sklearn.config_context#393

Open
fhoehle wants to merge 2 commits intomicrosoft:mainfrom
fhoehle:fh.fix-sklearn-config_context
Open

Add missing contextlib.contextmanager to sklearn.config_context#393
fhoehle wants to merge 2 commits intomicrosoft:mainfrom
fhoehle:fh.fix-sklearn-config_context

Conversation

@fhoehle
Copy link
Copy Markdown

@fhoehle fhoehle commented Apr 15, 2026

The current type hints for the sklearn.config_context context manager is missing the contextlib.contextmanager decorator.

This PR also updates the return value to using Generator hint since Iterator is deprecated .

Comment thread stubs/sklearn/_config.pyi Outdated
Co-authored-by: Avasam <samuel.06@hotmail.com>
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