Closed ilevkivskyi closed 3 days ago
Fixes https://github.com/python/mypy/issues/16696 Fixes https://github.com/python/mypy/issues/16695
I think there are no good reasons to not allow this anymore. Also I am using this opportunity to tighten a bit invalid instances/aliases where a regular type variable is replaced with parameters and vice versa.
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
Fixes https://github.com/python/mypy/issues/16696 Fixes https://github.com/python/mypy/issues/16695
I think there are no good reasons to not allow this anymore. Also I am using this opportunity to tighten a bit invalid instances/aliases where a regular type variable is replaced with parameters and vice versa.