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 type hints for Zzz's *args and **kwargs with ParamSpec #76

Open
majidaldo opened this issue Jan 29, 2023 · 1 comment
Open

Add type hints for Zzz's *args and **kwargs with ParamSpec #76

majidaldo opened this issue Jan 29, 2023 · 1 comment
Labels
documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@majidaldo
Copy link
Contributor

majidaldo commented Jan 29, 2023

def Zzz(gctor: Callable[[Any], GoalType], *args, **kwargs) -> GoalType:

...if python >= 3.10 can be assumed.

@brandonwillard brandonwillard added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers documentation labels Feb 1, 2023
@brandonwillard brandonwillard changed the title type Zzz *args and **kwargs with ParamSpec Add type hints for Zzz's *args and **kwargs with ParamSpec Feb 1, 2023
@brandonwillard
Copy link
Member

...if python >= 3.10 can be assumed.

I believe we're already requiring typing_extensions, so ParamSpec should be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants