basedmypy
basedmypy copied to clipboard
`FunctionType` doesn't narrow properly from a callable
from types import FunctionType
fn: "() -> int"
assert isinstance(fn, FunctionType)
reveal_type(fn) # Revealed type is "types.FunctionType" (narrowed from "() -> int")