Add _file attribute to SpooledTemporaryFile (#10327)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Sujal GuptaandAkuli authored and GitHub committed 2023-06-24 17:09:51 +03:00
1 parent 5af30e8620
commit 575dd0c448
1 file changed
+1
+1
View File
@@ -380,6 +380,7 @@ else:
# It does not actually derive from IO[AnyStr], but it does mostly behave
# like one.
class SpooledTemporaryFile(IO[AnyStr], _SpooledTemporaryFileBase):
_file: IO[AnyStr]
@property
def encoding(self) -> str: ... # undocumented
@property