Static Python: primitive types don't support pow operator
@sinancepel 已经在做这个了。
开始于 2021年12月22日。
评估
这个 Issue 还没有评估数据。
描述
(and there is an exception while assembling the error message)
def test(x: double, y: double) -> double:
return x ** y
File "/usr/lib/python3.8/compiler/visitor.py", line 70, in visit
return meth(node, *args)
File "/usr/lib/python3.8/compiler/static.py", line 5995, in visitBinOp
if ltype.bind_binop(node, self, type_ctx):
File "/usr/lib/python3.8/compiler/static.py", line 4866, in bind_binop
raise visitor.syntax_error(self.binop_error(self, rtype, node.op), node)
File "/usr/lib/python3.8/compiler/static.py", line 4398, in binop_error
return f"cannot {self._op_name[type(op)]} {left.name} and {right.name}"
KeyError: <class '_ast.Pow'>
- 主要语言
- Python
- 星标
- 3.8k
- 派生
- 139
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
facebookincubator/MetaPython 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
facebookincubator/MetaPython#147 ·
-
难度 4/5 3-5 天 新手友好度 45/100
facebookincubator/MetaPython#146 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
facebookincubator/MetaPython#145 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
facebookincubator/MetaPython#144 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 20/100
facebookincubator/MetaPython#129 · 2 条评论 ·
查看 facebookincubator/MetaPython 的全部 Issue
相似的 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 90/100
simonw/sqlite-utils#872 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100