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

Add support for Unpack in args and kwargs #523

Merged
merged 5 commits into from
Apr 17, 2022
Merged

Add support for Unpack in args and kwargs #523

merged 5 commits into from
Apr 17, 2022

Conversation

JelleZijlstra
Copy link
Contributor

  • Add support for Unpack in args and kwargs
  • add stub support

@JelleZijlstra
Copy link
Contributor Author

Followups:

  • Error for unsupported objects in Unpack (right now they just generate a signature that will never match)
  • Clean up the signature to split it into individual params, so the sig for def f(*args: *tuple[int, str]) would have two pos-only params instead of a single var-positional. In the process, allow nameless pos-only params, so we don't leak things like __arg0 into error messages.

@JelleZijlstra JelleZijlstra merged commit 01ae202 into master Apr 17, 2022
@JelleZijlstra JelleZijlstra deleted the listappend branch April 17, 2022 22:59
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.

None yet

1 participant