Skip to content

python: Annotate context managers as returning Generator - #294

Merged
martinpitt merged 1 commit into
amutable-systems:mainfrom
daandemeyer:push-koxqlumsqxmx
Oct 12, 2026
Merged

martinpitt merged 1 commit into
amutable-systems:mainfrom
daandemeyer:push-koxqlumsqxmx

Conversation

@daandemeyer

Copy link
Copy Markdown
Member

ty 0.0.86 deprecates the overload of contextmanager() that takes a
function returning Iterator, and reports every such function as an error.
Annotate them as returning Generator instead.

Signed-off-by: Daan De Meyer daan@amutable.com

ty 0.0.86 deprecates the overload of contextmanager() that takes a
function returning Iterator, and reports every such function as an error.
Annotate them as returning Generator instead.

Signed-off-by: Daan De Meyer <daan@amutable.com>
@martinpitt
martinpitt merged commit b4120b5 into amutable-systems:main Oct 12, 2026
2 checks passed
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