ruff
[ty] Return type inference
#29253
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
21
Changes
View On
GitHub
[ty] Return type inference
#29253
sharkdp
merged 21 commits into
david/return-type-inference-config
from
david/return-type-inference
sharkdp
added
ty
sharkdp
force pushed
from
57576581
to
2768ea32
37 days ago
Base automatically changed from
david/return-type-inference-tests
to
main
34 days ago
sharkdp
force pushed
from
2768ea32
to
dc3ba2c4
34 days ago
sharkdp
force pushed
from
dc3ba2c4
to
80251baf
34 days ago
sharkdp
force pushed
from
80251baf
to
f2daf739
34 days ago
sharkdp
changed the base branch from
main
to
david/return-type-inference-prep
34 days ago
Base automatically changed from
david/return-type-inference-prep
to
main
34 days ago
sharkdp
force pushed
from
f2daf739
to
3343aa2a
34 days ago
sharkdp
force pushed
from
3343aa2a
to
dc6472c8
34 days ago
sharkdp
force pushed
from
dc6472c8
to
7e37569a
34 days ago
sharkdp
changed the base branch from
main
to
david/return-type-inference-prep2
34 days ago
Base automatically changed from
david/return-type-inference-prep2
to
main
34 days ago
sharkdp
force pushed
from
7e37569a
to
b9f44c59
34 days ago
sharkdp
force pushed
from
b9f44c59
to
4d4a907a
33 days ago
sharkdp
force pushed
from
4d4a907a
to
ab44ff6a
33 days ago
sharkdp
changed the base branch from
main
to
codex/ty-implicit-return-none-helper
33 days ago
Base automatically changed from
codex/ty-implicit-return-none-helper
to
main
33 days ago
sharkdp
force pushed
from
ab44ff6a
to
b2ab1e55
33 days ago
sharkdp
force pushed
from
d77b8055
to
4c8353cf
33 days ago
sharkdp
changed the base branch from
main
to
david/return-type-inference-config
33 days ago
sharkdp
force pushed
from
4c8353cf
to
8ee72efb
33 days ago
sharkdp
changed the base branch from
david/return-type-inference-config
to
codex/return-type-inference-edge-case-tests
33 days ago
sharkdp
force-pushed the
codex/return-type-inference-edge-case-tests
branch
from
6188f798
to
3e22db4e
33 days ago
sharkdp
force pushed
from
8ee72efb
to
ea366290
33 days ago
sharkdp
force pushed
from
ea366290
to
d242748d
33 days ago
sharkdp
force-pushed the
codex/return-type-inference-edge-case-tests
branch
from
3e22db4e
to
42da4f12
33 days ago
Base automatically changed from
codex/return-type-inference-edge-case-tests
to
david/return-type-inference-config
33 days ago
sharkdp
force pushed
from
d242748d
to
57fb7ce5
33 days ago
sharkdp
force pushed
from
57fb7ce5
to
c81b80a0
32 days ago
sharkdp
force pushed
from
c81b80a0
to
2d7a48e2
32 days ago
sharkdp
force pushed
from
2d7a48e2
to
b0852e2b
31 days ago
sharkdp
marked this pull request as ready for review
31 days ago
sharkdp
requested a review
31 days ago
astral-sh-bot
requested a review
from
charliermarsh
31 days ago
sharkdp
force pushed
from
78206493
to
33fc266e
31 days ago
charliermarsh
commented on 2026-10-15
charliermarsh
commented on 2026-10-15
charliermarsh
commented on 2026-10-15
charliermarsh
commented on 2026-10-15
charliermarsh
commented on 2026-10-15
charliermarsh
commented on 2026-10-15
charliermarsh
approved these changes on 2026-10-15
sharkdp
commented on 2026-10-15
[ty] Return type inference
c6ea2006
Reuse scope-end reachability checking
259f176b
[ty] Preserve existing signature inference comments
47e0809c
[ty] Honor return-type-inference configuration
2e39366d
[ty] Cover return inference edge cases and skip type-checking-only bo…
33527948
Remove superfluous TODO
a44b299c
[ty] Defer handling local types in inferred returns
80d39e3d
Tests
a8d75255
Simplify inheritance rules
ca940853
Remove two TODOs
3c378a20
Renaming and comments
27d3da62
Make code nice
4f34b693
More improvements
4d33e2ee
Comments
49be4653
More improvements
2aea0f21
One more test
9a90fe02
[ty] Remove unnecessary visibility on return inference helper
5a33303e
Skip return type inference for abstract methods and protocol methods
a4603053
Fix inference of static methods on generic classes
fce28c87
Only exclude __init__/__new__ methods, not functions
f2c53076
[ty] Restore partial test expectation with return inference disabled
3b952b55
sharkdp
force pushed
from
b6e8e4ac
to
3b952b55
30 days ago
sharkdp
merged
b99f71a4
into david/return-type-inference-config
30 days ago
sharkdp
deleted the david/return-type-inference branch
30 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
charliermarsh
Assignees
No one assigned
Labels
ty
Milestone
No milestone
Login to write a write a comment.
Login via GitHub