Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @yieldreturn tags for type inference #749

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

apiology
Copy link
Contributor

  • Track yield calls similarly to super() calls in source chains
  • Add a block's Signature pin in method Signature when block parameter declared or documented
  • Include info from yieldparam/yieldreturn tags in that block Signature pin when they exist
  • Teach Signature pin to be included in inference chains
  • Fix a docstring-related test bug in method_spec.rb
  • Include yieldparam/yieldreturn info in method documentation from LSP
  • Add misc inference specs to lock down existing related behavior
  • Add ability to method return types based on yield call's @yieldreturn

* Track yield calls similarly to super() calls in source chains
* Add a block's Signature pin in method Signature when block parameter declared or documented
* Include info from yieldparam/yieldreturn tags in that block Signature pin when they exist
* Teach Signature pin to be included in inference chains
* Fix a docstring-related test bug in method_spec.rb
* Include yieldparam/yieldreturn info in method documentation from LSP
* Add misc inference specs to lock down existing related behavior
* Add ability to method return types based on yield call's @yieldreturn
@castwide
Copy link
Owner

👍 :shipit:

@castwide castwide merged commit 571fefc into castwide:master Feb 26, 2025
8 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