8000 Remove, move or `# noqa` more `TypeAlias` declarations by AlexWaygood · Pull Request #8450 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Remove, move or # noqa more TypeAlias declarations #8450

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

Merged
merged 3 commits into from
Aug 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve comment
  • Loading branch information
AlexWaygood authored Aug 5, 2022
commit 1424f105281e2b2f753571f3000b41ae61ac73f3
8 changes: 6 additions & 2 deletions stdlib/multiprocessing/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ from multiprocessing.context import (
from multiprocessing.process import active_children as active_children, current_process as current_process

# These are technically functions that return instances of these Queue classes.
# Using them as annotations is deprecated. Use imports from multiprocessing.queues instead.
# See #4266 for discussion.
# The stub here doesn't reflect reality exactly --
# while e.g. `multiprocessing.queues.Queue` is a class,
# `multiprocessing.Queue` is actually a function at runtime.
# Avoid using `multiprocessing.Queue` as a type annotation;
# use imports from multiprocessing.queues instead.
# See #4266 and #8450 for discussion.
from multiprocessing.queues import JoinableQueue as JoinableQueue, Queue as Queue, SimpleQueue as SimpleQueue
from multiprocessing.spawn import freeze_support as freeze_support

Expand Down
0