Skip to content

Support TextIOWrapper.reconfigure() #3049

Closed
@grantwwu

Description

@grantwwu

I'm getting a

"TextIO" has no attribute "reconfigure"

error for

sys.stdin.reconfigure(encoding="latin-1")

It's a new Python 3.7 feature. Was informed in Gitter that this hadn't been added to Typeshed yet and to open a ticket for it.

See https://docs.python.org/3/whatsnew/3.7.html#io

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions