For Python 3.14, in this line and the following one the code should use ast.Constant instead of ast.Num and node.value instead of node.n.
The ast.Num has been deprecated since 3.8 but I think it was removed in 3.13, so modern python would require this change.
For Python 3.14, in this line and the following one the code should use
ast.Constantinstead ofast.Numandnode.valueinstead ofnode.n.The
ast.Numhas been deprecated since3.8but I think it was removed in3.13, so modern python would require this change.