Add user-defined var-params function

This commit is contained in:
Shunsuke Shibayama 2023-01-26 01:20:35 +09:00
parent 4b08fd21a2
commit 23a7e2caf3
28 changed files with 526 additions and 211 deletions

View file

@ -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.

View file

@ -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

View file

@ -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