We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd377c commit a5103beCopy full SHA for a5103be
Tools/clinic/clinic.py
@@ -4283,6 +4283,11 @@ class float_return_converter(double_return_converter):
4283
cast = '(double)'
4284
4285
4286
+# What do we do in this function?
4287
+# We take an arbitrary AST node, compile the node into a function object,
4288
+# call that function with 0 arguments, and return whatever the call returns.
4289
+# The only possible return annotations here would be `object` or `Any`,
4290
+# and `object` would be too annoying. Return `Any`!
4291
def eval_ast_expr(
4292
node: ast.expr,
4293
globals: dict[str, Any],
0 commit comments