def syn_idx_Unary_Name_constructor(cls, ctx, e, inc_idx):
id = e.operand.id
if id != "Inf":
raise _errors.TyError("Invalid ieee literal.", e)
if not isinstance(e.op, (ast.UAdd, ast.USub)):
raise _errors.TyError("Invalid unary operator on ieee literal.", e)
return ()
评论列表
文章目录