From 6623f6c35f08b08a1e4dddfc3209acdaa57dcc8d Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 25 Nov 2022 21:31:49 -0600 Subject: Se añaden Graphable faltante MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compilador/astree/expr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compilador/astree/expr.py') diff --git a/compilador/astree/expr.py b/compilador/astree/expr.py index b696d51..f4d150c 100644 --- a/compilador/astree/expr.py +++ b/compilador/astree/expr.py @@ -197,7 +197,7 @@ class PrintExpr(Graphable): # # leer a @dataclass -class ReadExpr: +class ReadExpr(Graphable): expr: AccessExpr def graph(self, dot: gv.Digraph, parent: str = None, edge: str = None) -> None: @@ -210,7 +210,7 @@ class ReadExpr: # # retorna a @dataclass -class ReturnExpr: +class ReturnExpr(Graphable): expr: Optional[Expr] def graph(self, dot: gv.Digraph, parent: str = None, edge: str = None) -> None: -- cgit v1.2.3