KotlinIsland / basedtypeshed

Collection of library stubs for Python, with static types
Other
3 stars 0 forks source link

Fix `NoneType` and `Any` #21

Open KotlinIsland opened 2 years ago

KotlinIsland commented 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.

Also fix the type of Any

github-actions[bot] commented 2 years ago

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉