Open
Description
make float
not act like float | int
(and complex
act like complex | float
) , and bytes
not act like bytes | memoryview | bytearray
we can still infer float | int
though:
a = 1
reveal_type(a) # float | int
will support configuration per module, to preserve compatibility:
from thirdparty import some_float
reveal_type(some_float) # float | int