Static Python: primitive types don't support pow operator
@sinancepel is already working on this.
Since Dec 22, 2021.
Assessment
This issue has not been assessed yet.
Description
(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'>
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebookincubator/MetaPython
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
facebookincubator/MetaPython#147 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
facebookincubator/MetaPython#146 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
facebookincubator/MetaPython#145 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
facebookincubator/MetaPython#144 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
facebookincubator/MetaPython#129 · 2 comments ·
All issues in facebookincubator/MetaPython
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100