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

Stubgen support for positional only parameters as per PEP 570 #14138

Open
KovacsGG opened this issue Nov 19, 2022 · 0 comments
Open

Stubgen support for positional only parameters as per PEP 570 #14138

KovacsGG opened this issue Nov 19, 2022 · 0 comments

Comments

@KovacsGG
Copy link

KovacsGG commented Nov 19, 2022

Feature

Stubgen should recognize a signature in the shape of func(param1: T1, param2: T2, /) -> T3 if given in the docstring.

Pitch

As https://peps.python.org/pep-0570/ describes, this is common with C extensions. There is currently no way to express these signatures in a way that stubgen can understand and regenerate correctly in the stub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants