mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 03:49:06 +00:00
20 lines
621 B
Python
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!
|