Skip to content

Add concurrent.interpreters stubs for 3.14.0b3 #14307

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brianschubert
Copy link
Contributor

Refs #1430

Upstream issue: python/cpython#134939

_R = TypeVar("_R")
_P = ParamSpec("_P")

class ExecutionFailed(InterpreterError):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what to make of the pyright errors here and in _queues.pyi. It seems to be having issues with imports from _interpreters and _interpqueues?

/home/runner/work/typeshed/typeshed/stdlib/concurrent/interpreters/__init__.pyi
  /home/runner/work/typeshed/typeshed/stdlib/concurrent/interpreters/__init__.pyi:37:23 - error: Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
/home/runner/work/typeshed/typeshed/stdlib/concurrent/interpreters/_queues.pyi
  /home/runner/work/typeshed/typeshed/stdlib/concurrent/interpreters/_queues.pyi:24:18 - error: Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
  /home/runner/work/typeshed/typeshed/stdlib/concurrent/interpreters/_queues.pyi:25:17 - error: Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
  /home/runner/work/typeshed/typeshed/stdlib/concurrent/interpreters/_queues.pyi:26:32 - error: Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
4 errors, 0 warnings, 0 informations 

Copy link
Contributor Author

@brianschubert brianschubert Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: there's a discussion about whether this module will ultimately be named concurrent.interpreters or interpreters: https://discuss.python.org/t/interpreters-vs-concurrent-interpreters/95980. Does it make sense to add these here for now if there's a chance the name will change?

Copy link
Contributor

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

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.

1 participant