mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 04:44:44 +00:00
Add raw identifier
This commit is contained in:
parent
48eb3c5920
commit
03a36f48a3
14 changed files with 137 additions and 26 deletions
|
@ -1,4 +1,13 @@
|
|||
.StringIO!: ClassType
|
||||
.StringIO!.getvalue!: (self: Ref(StringIO!),) => Str
|
||||
.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!
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.ZipFile!: ClassType
|
||||
.ZipFile! <: FileLike!
|
||||
|
||||
.ZipFile!.open!: (path: PathLike or NoneType := NoneType, mode := Str) => .ZipFile!
|
||||
.ZipFile!.open!: (path: PathLike or FileLike!, mode := Str) => .ZipFile!
|
||||
.ZipFile!.add!: (self: RefMut(.ZipFile!), name: PathLike, arcname: PathLike or NoneType := NoneType, recursive := Bool) => NoneType
|
||||
.ZipFile!.close!: (self: .ZipFile!,) => NoneType
|
||||
.ZipFile!.extractall!: (self: RefMut(.ZipFile!), path := PathLike, members: [Str; _] or NoneType := NoneType, numeric_owner := Bool) => NoneType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue