Open KotlinIsland opened 2 years ago
I currently always use (at least) the following (undocumented) settings in vanilla mypy:
disable_bytearray_promotion = true
disable_memoryview_promotion = true
so how about something like:
disable_int_promotion = true
disable_float_promotion = true
make
float
not act likefloat | int
(andcomplex
act likecomplex | float
) , andbytes
not act likebytes | memoryview | bytearray
we can still infer
float | int
though:will support configuration per module, to preserve compatibility: