typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Make IO and TextIO properties abstract

Open JukkaL opened this issue 6 years ago • 1 comments

Currently several properties are concrete, even though IO and TextIO are ABCs.

Originally https://github.com/python/mypy/issues/266.

JukkaL avatar May 17 '18 21:05 JukkaL

If we do this, we should be careful to not accidentally make subclasses non-instantiable (#1476).

JelleZijlstra avatar May 17 '18 21:05 JelleZijlstra

Note that #8726 tried to fix this, but the mypy_primer output indicated that it would have been hugely disruptive

AlexWaygood avatar Sep 23 '22 21:09 AlexWaygood