ruff
[ty] Check return type of generator functions
#24026
Merged

[ty] Check return type of generator functions #24026

Glyphack
astral-sh-bot astral-sh-bot added ty
astral-sh-bot
astral-sh-bot
astral-sh-bot
Glyphack Check return type of generator functions
dad180e4
Glyphack Glyphack force pushed from 16459bdd to dad180e4 138 days ago
Glyphack Fix tests
8ea8bec7
sharkdp sharkdp assigned sharkdp sharkdp 138 days ago
Glyphack Glyphack marked this pull request as ready for review 138 days ago
Glyphack Glyphack requested a review from carljm carljm 138 days ago
Glyphack Glyphack requested a review from AlexWaygood AlexWaygood 138 days ago
Glyphack Glyphack requested a review from sharkdp sharkdp 138 days ago
Glyphack Glyphack requested a review from dcreager dcreager 138 days ago
Glyphack Glyphack requested a review from ibraheemdev ibraheemdev 138 days ago
Glyphack Glyphack marked this pull request as draft 138 days ago
Glyphack Update tests
7603845f
Glyphack Glyphack marked this pull request as ready for review 138 days ago
carljm carljm removed review request from carljm carljm 136 days ago
sharkdp
sharkdp requested changes on 2026-03-23
Glyphack Infer return type with type context of generator return type
c3dd7f65
Glyphack Remove Iterator test because context is unknown
e7d703f3
Glyphack
Glyphack Glyphack requested a review from sharkdp sharkdp 135 days ago
sharkdp
sharkdp approved these changes on 2026-03-24
Glyphack Update crates/ty_python_semantic/resources/mdtest/function/return_typ…
b58c2bac
Glyphack Update crates/ty_python_semantic/src/types/infer/builder/function.rs
61f7fb64
Glyphack Update crates/ty_python_semantic/src/types/infer/builder.rs
5ac88f96
Glyphack Update crates/ty_python_semantic/src/types/infer/builder/function.rs
f9ed3b12
Glyphack Emit diagnostics for returning values from `typing.Iterator`
e6d9598d
Glyphack Add test case for non generator function annotated with Generator
fbf5dc0f
Glyphack Check `FileScopeId::is_generator_function` when setting type context
8816b4ff
sharkdp sharkdp merged b491f7eb into main 134 days ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone