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