Add _file attribute to SpooledTemporaryFile (#10327)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Sujal Gupta
2023-06-24 17:09:51 +03:00
committed by GitHub
co-authored by Akuli
parent 5af30e8620
commit 575dd0c448
+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