Open KotlinIsland opened 2 years ago
NoneType used to work in a type position, but not a value position, that was useless, because you should always use None or type[None]. Now it works in a value position, but not a type position, I think this is consistent and good.
NoneType
None
type[None]
Also fix the type of Any
Any
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
NoneType
used to work in a type position, but not a value position, that was useless, because you should always useNone
ortype[None]
. Now it works in a value position, but not a type position, I think this is consistent and good.Also fix the type of
Any