| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bdd377c commit a5103be
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4283,6 +4283,11 @@ class float_return_converter(double_return_converter): | |||
| 4283 | 4283 | cast = '(double)' | |
| 4284 | 4284 | ||
| 4285 | 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`! | ||
| 4286 | 4291 | def eval_ast_expr( | |
| 4287 | 4292 | node: ast.expr, | |
| 4288 | 4293 | globals: dict[str, Any], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments