Turn TextIOWrapper(buffer) into a protocol (#11420)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2024-02-14 19:49:28 +01:00
1 parent a3d356c04c
commit 4664986cea
3 files changed
+44 -4

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
from gzip import GzipFile
from io import FileIO, TextIOWrapper
TextIOWrapper(FileIO(""))
TextIOWrapper(FileIO(13))
TextIOWrapper(GzipFile(""))