mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
Turn TextIOWrapper(buffer) into a protocol (#11420)
This commit is contained in:
6
test_cases/stdlib/check_io.py
Normal file
6
test_cases/stdlib/check_io.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from gzip import GzipFile
|
||||
from io import FileIO, TextIOWrapper
|
||||
|
||||
TextIOWrapper(FileIO(""))
|
||||
TextIOWrapper(FileIO(13))
|
||||
TextIOWrapper(GzipFile(""))
|
||||
Reference in New Issue
Block a user