Skip to content

Make IO and TextIO properties abstract #2146

Closed as not planned
Closed as not planned

Description

@JukkaL

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

Originally python/mypy#266.

Activity

  1. JelleZijlstra commented on May 17, 2018

    @JelleZijlstra
    Member

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

  2. AlexWaygood commented on Sep 23, 2022

    @AlexWaygood
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: improvementImprove/refactor existing annotations, other stubs issuestopic: ioI/O related issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions