mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
Rename dir: compiler
-> crates
This commit is contained in:
parent
e1004b538d
commit
a127564b31
221 changed files with 17 additions and 19 deletions
18
crates/erg_compiler/lib/pystd/io.d.er
Normal file
18
crates/erg_compiler/lib/pystd/io.d.er
Normal file
|
@ -0,0 +1,18 @@
|
|||
.DEFAULT_BUFFER_SIZE: {8192}
|
||||
|
||||
.StringIO!: ClassType
|
||||
.StringIO! <: FileLike!
|
||||
.StringIO!.read!: (self: RefMut(.StringIO!), ) => Str
|
||||
.StringIO!.write!: (self: RefMut(.StringIO!), s: Str) => NoneType
|
||||
.StringIO!.getvalue!: (self: Ref(.StringIO!),) => Str
|
||||
|
||||
.TextIOWrapper!: ClassType
|
||||
|
||||
.BytesIO!: ClassType
|
||||
.BytesIO! <: FileLike!
|
||||
.BytesIO!.read!: (self: RefMut(.BytesIO!), ) => Bytes
|
||||
.BytesIO!.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!
|
Loading…
Add table
Add a link
Reference in a new issue