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

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

View File

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