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 _interpreters to stdlib #12011

Open
tonybaloney opened this issue May 23, 2024 · 6 comments
Open

Add _interpreters to stdlib #12011

tonybaloney opened this issue May 23, 2024 · 6 comments
Labels
stubs: incomplete Annotations or sub-modules missing from an existing package or module

Comments

@tonybaloney
Copy link

The _interpreters and _interpchannels packages were added in 3.13b1 but are missing type annotations.

Related #11990

I'd be happy to submit these sometime over the next week in a PR

@tonybaloney
Copy link
Author

Cc @ericsnowcurrently

@srittau srittau added the stubs: incomplete Annotations or sub-modules missing from an existing package or module label May 23, 2024
@max-muoto
Copy link
Contributor

Have started to work on these, I'd imagine I'll have a PR up in the coming days.

@AlexWaygood
Copy link
Member

It might be easier to review if we first added some generated stubs using stubgen (if possible, using our wrapper script scripts/create_baseline_stubs.py), and we then incrementally made improvements to the generated stubs

@tonybaloney
Copy link
Author

Does stubgen use dir()? _interpreters is purely a C extension

@AlexWaygood
Copy link
Member

Stubgen is able to introspect C extensions, yup (see https://github.com/python/mypy/blob/master/mypy/stubgenc.py for the implementation)

@max-muoto
Copy link
Contributor

Put up a first PR for _interpchannels: #12199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stubs: incomplete Annotations or sub-modules missing from an existing package or module
Projects
None yet
Development

No branches or pull requests

5 participants
@srittau @tonybaloney @max-muoto @AlexWaygood and others