typeshed
typeshed copied to clipboard
Make IO and TextIO properties abstract
Currently several properties are concrete, even though IO
and TextIO
are ABCs.
Originally https://github.com/python/mypy/issues/266.
If we do this, we should be careful to not accidentally make subclasses non-instantiable (#1476).
Note that #8726 tried to fix this, but the mypy_primer output indicated that it would have been hugely disruptive