-
-
Notifications
You must be signed in to change notification settings - Fork 2k
tempfile.SpooledTemporaryFile missing _file attribute #10286
Copy link
Copy link
Closed
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations or sub-modules missing from an existing package or module
Metadata
Metadata
Assignees
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations or sub-modules missing from an existing package or module
According to the python docs,
SpooledTemporaryFile._fileis 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
_fileattribute should be added totempfile.pyifor theSpooledTemporaryFileclass.