Add _file attribute to SpooledTemporaryFile (#10327)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Sujal Gupta
2023-06-24 19:39:51 +05:30
committed by GitHub
parent 5af30e8620
commit 575dd0c448

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