-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
stubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations or sub-modules missing from an existing package or module
Description
I noticed this when trying to subclass a queue, it fails on super().__setstate__(...)
.
Mypy seems happy with __getstate__
, but not __setstate__
, even though both exist.

https://mypy-play.net/?mypy=latest&python=3.12&gist=125d98f01321257f2e55a7b41536f8b0
import multiprocessing.queues
multiprocessing.queues.Queue.__getstate__
multiprocessing.queues.Queue.__setstate__
# error: "type[Queue[Any]]" has no attribute "__setstate__" [attr-defined]
Metadata
Metadata
Assignees
Labels
stubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations or sub-modules missing from an existing package or module