Skip to content

tempfile.SpooledTemporaryFile missing _file attribute #10286

@Dr-Irv

Description

@Dr-Irv

According to the python docs, SpooledTemporaryFile._file is an attribute: "The returned object is a file-like object whose _file attribute is either an io.BytesIO or io.TextIOWrapper object (depending on whether binary or text mode was specified)"

So the _file attribute should be added to tempfile.pyi for the SpooledTemporaryFile class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedAn actionable problem of low to medium complexity where a PR would be very welcomestubs: incompleteAnnotations or sub-modules missing from an existing package or module

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions