From f3f8b6fca53c02eb8841c1a7b85a5af05aeaf4db Mon Sep 17 00:00:00 2001
From: "C.A.M. Gerlach" <CAM.Gerlach@Gerlach.CAM>
Date: Mon, 24 Oct 2022 08:05:14 -0500
Subject: [PATCH] gh-95913: Add io support for SpooledTemporaryFile in 3.11
 Whatsnew (#98312)

---
 Doc/whatsnew/3.11.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 954b89c8279..d9528c62e67 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -995,6 +995,19 @@ sysconfig
   (Contributed by Miro HronĨok in :issue:`45413`.)
 
 
+.. _whatsnew311-tempfile:
+
+tempfile
+--------
+
+* :class:`~tempfile.SpooledTemporaryFile` objects now fully implements the methods
+  of :class:`io.BufferedIOBase` or :class:`io.TextIOBase`
+  (depending on file mode).
+  This lets them work correctly with APIs that expect file-like objects,
+  such as compression modules.
+  (Contributed by Carey Metcalfe in :gh:`70363`.)
+
+
 threading
 ---------
 
-- 
GitLab