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 initial support for TypeVarLike default parameters (PEP 696) #8821

Merged
merged 6 commits into from
Oct 6, 2022

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Oct 2, 2022

This adds the default parameter to TypeVar, ParamSpec, and TypeVarTuple.
PR: python/typing_extensions#77

https://peps.python.org/pep-0696/

/CC: @Gobot1234, @JelleZijlstra

@AlexWaygood
Copy link
Member

Thanks! We'll need to wait for the runtime PR to be merged before we can merge this :)

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

stdlib/typing_extensions.pyi Show resolved Hide resolved
stdlib/typing_extensions.pyi Show resolved Hide resolved
@JelleZijlstra
Copy link
Member

Actually it looks like we need to add a few more things to get CI green with the new release. I'll just hijack this PR to also add override and Any.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2022

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit f536953 into python:master Oct 6, 2022
@cdce8p cdce8p deleted the TypeVarLike-defaults branch October 6, 2022 23:32
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

3 participants