basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

use `NoneType` as the type of `None`

Open KotlinIsland opened this issue 3 years ago • 2 comments

would fix a lot of issues

KotlinIsland avatar Jul 07 '22 00:07 KotlinIsland

So is that it would treat None and NoneType as being the same? Otherwise, wouldn't it fail if you used any stubs written for mypy?

Zeckie avatar Jul 12 '22 08:07 Zeckie

treat None and NoneType as being the same?

No, there's issues with how mypy handles None and NoneType that leave a lot to be desired, if your offering to create a PR I could fill you in on what needs to be changed and why.

KotlinIsland avatar Jul 12 '22 09:07 KotlinIsland