mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
Add user-defined var-params function
This commit is contained in:
parent
4b08fd21a2
commit
23a7e2caf3
28 changed files with 526 additions and 211 deletions
|
@ -92,7 +92,7 @@ Parameters:
|
|||
* `flush`:
|
||||
ストリームを強制的にフラッシュするかどうか。
|
||||
'''
|
||||
.print!: (args: Ref(Obj), sep := Str, end := Str, file := Writable!, flush := Bool) => NoneType
|
||||
.print!: (*args: Ref(Obj), sep := Str, end := Str, file := Writable!, flush := Bool) => NoneType
|
||||
|
||||
'''
|
||||
Open file and return a stream.
|
||||
|
|
|
@ -26,4 +26,4 @@
|
|||
.getdoc: (object: Obj) -> Str
|
||||
.getcomments: (object: Obj) -> Str
|
||||
.getfile: (object: Obj) -> Str
|
||||
.getmodule: (object: Obj) -> Module or NoneType
|
||||
.getmodule: (object: Obj) -> GenericModule or NoneType
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
.NoReturn: Type
|
||||
.Self: Type
|
||||
.TypeAlias: Type
|
||||
.Tuple: (...Type) -> Type
|
||||
.Union: (...Type) -> Type
|
||||
.Tuple: (*Type) -> Type
|
||||
.Union: (*Type) -> Type
|
||||
.Optional: (Type) -> Type
|
||||
.Callable: (...Type) -> Type
|
||||
.Concatenate: (...Type) -> Type
|
||||
.Callable: (*Type) -> Type
|
||||
.Concatenate: (*Type) -> Type
|
||||
.Type: (Type) -> Type
|
||||
.Literal: (...Obj) -> Type
|
||||
.Literal: (*Obj) -> Type
|
||||
.ClassVar: (Type) -> Type
|
||||
.Final: (Type) -> Type
|
||||
.Required: (Type) -> Type
|
||||
.NotRequired: (Type) -> Type
|
||||
.Annotated: (Type, ...Obj) -> Type
|
||||
.Annotated: (Type, *Obj) -> Type
|
||||
.TypeGuard: (Type) -> Type
|
||||
.Generic: (Type) -> Type
|
||||
.TypeVar: (Str) -> Type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue