-
Notifications
You must be signed in to change notification settings - Fork 259
PEP 612 support #794
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
Comments
There is an open pull request: #774. |
Thanks for the pointer @JelleZijlstra |
@JelleZijlstra could you review #774?
…On Sun, Apr 4, 2021 at 2:16 PM markedwards ***@***.***> wrote:
Thanks for the pointer @JelleZijlstra <https://github.com/JelleZijlstra>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#794 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWCWMSAJZDECTQB3BJIUVLTHDJMRANCNFSM42LTXK6A>
.
--
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
|
I will, I can ping you once I'm happy with it. |
This has now been merged. |
Thanks! |
Following up on this, running mypy 0.910 and typing-extensions 3.10.0.2, I get errors with the documentation example for ParamSpec: import logging
from collections.abc import Callable
from typing import TypeVar
from typing_extensions import ParamSpec
T = TypeVar('T')
P = ParamSpec('P')
def add_logging(f: Callable[P, T]) -> Callable[P, T]:
# mypy complains for the above line:
# The first argument to Callable must be a list of types or "..."
def inner(*args: P.args, **kwargs: P.kwargs) -> T:
# mypy complains for the above line:
# Name "P.args" is not defined
# Name "P.kwargs" is not defined
logging.info(f'{f.__name__} was called')
return f(*args, **kwargs)
return inner Is it not possible to use ParamSpec in python 3.9? |
mypy 0.910 doesn't support ParamSpec yet. |
@srittau Thanks, I see python/mypy#8645 now |
Is there a schedule for adding support for PEP 612 (ParamSpec) to typing_extensions?
The text was updated successfully, but these errors were encountered: