Skip to content

Conversation

@graingert
Copy link

No description provided.


return self.generic_visit(ast.Module(body=list(splice(dosplice, n.body))))

def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> ast.FunctionDef:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is being called, but the return value is being ignored. :(

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a bug in typed ast.
Maybe it would be better to use lower-level api, like in https://github.com/nvbn/py-backwards/blob/master/py_backwards/transformers/variables_annotations.py#L20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants