mbcp.mp_math.mp_math_typing
本模块用于内部类型提示
var RealNumber
Description: 实数
Type:
TypeAlias
Default:
int | float
var Number
Description: 数
Type:
TypeAlias
Default:
RealNumber | complex
var SingleVar
Description: 单变量
Default:
TypeVar('SingleVar', bound=Number)
var ArrayVar
Description: 数组变量
Default:
TypeVar('ArrayVar', bound=Iterable[Number])
var Var
Description: 变量
Type:
TypeAlias
Default:
SingleVar | ArrayVar
var OneSingleVarFunc
Description: 一元单变量函数
Type:
TypeAlias
Default:
Callable[[SingleVar], SingleVar]
var OneArrayFunc
Description: 一元数组函数
Type:
TypeAlias
Default:
Callable[[ArrayVar], ArrayVar]
var OneVarFunc
Description: 一元函数
Type:
TypeAlias
Default:
OneSingleVarFunc | OneArrayFunc
var TwoSingleVarsFunc
Description: 二元单变量函数
Type:
TypeAlias
Default:
Callable[[SingleVar, SingleVar], SingleVar]
var TwoArraysFunc
Description: 二元数组函数
Type:
TypeAlias
Default:
Callable[[ArrayVar, ArrayVar], ArrayVar]
var TwoVarsFunc
Description: 二元函数
Type:
TypeAlias
Default:
TwoSingleVarsFunc | TwoArraysFunc
var ThreeSingleVarsFunc
Description: 三元单变量函数
Type:
TypeAlias
Default:
Callable[[SingleVar, SingleVar, SingleVar], SingleVar]
var ThreeArraysFunc
Description: 三元数组函数
Type:
TypeAlias
Default:
Callable[[ArrayVar, ArrayVar, ArrayVar], ArrayVar]
var ThreeVarsFunc
Description: 三元函数
Type:
TypeAlias
Default:
ThreeSingleVarsFunc | ThreeArraysFunc
var MultiSingleVarsFunc
Description: 多元单变量函数
Type:
TypeAlias
Default:
Callable[..., SingleVar]
var MultiArraysFunc
Description: 多元数组函数
Type:
TypeAlias
Default:
Callable[..., ArrayVar]
var MultiVarsFunc
Description: 多元函数
Type:
TypeAlias
Default:
MultiSingleVarsFunc | MultiArraysFunc