erg/crates/erg_compiler/lib/pystd/io.d.er
2023-02-17 15:15:11 +09:00

20 lines
621 B
Python

.DEFAULT_BUFFER_SIZE: {8192}
.StringIO!: ClassType
.StringIO! <: FileLike!
.StringIO!.
read!: (self: RefMut(.StringIO!), ) => Str
write!: (self: RefMut(.StringIO!), s: Str) => NoneType
getvalue!: (self: Ref(.StringIO!),) => Str
.TextIOWrapper!: ClassType
.BytesIO!: ClassType
.BytesIO! <: FileLike!
.BytesIO!.
read!: (self: RefMut(.BytesIO!), ) => Bytes
write!: (self: RefMut(.BytesIO!), b: Bytes) => NoneType
.newBytesIO = 'BytesIO': (bytes: Bytes,) -> .BytesIO!
.open!: (file: PathLike, mode := Str, buffering := Nat, encoding := Str or NoneType) -> File!
.open_code!: (path: PathLike) -> File!