get_withitem_calls faststream.utils.ast.get_withitem_calls # get_withitem_calls(node) Source code in faststream/utils/ast.py 48 49 50 51 52 53def get_withitem_calls(node: Union[ast.With, ast.AsyncWith]) -> List[str]: return [ id for i in find_withitems(node) if (id := getattr(i.context_expr.func, "id", None)) # type: ignore[attr-defined] ]