-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Labels
scoping-control-flowissues related to scoping and control flowissues related to scoping and control flowtypechecking
Description
Describe the Bug
from collections.abc import Callable
assert isinstance(len, Callable) # E: Expected class object, got `type[Callable]`Python: 3.12
This is supported at runtime and by other type checkers, and more or less equivalent to callable(...). cpython source
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Metadata
Metadata
Assignees
Labels
scoping-control-flowissues related to scoping and control flowissues related to scoping and control flowtypechecking