From d01b073ccb1dd4c2a2306f5b53679edc8e1cd138 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 25 Nov 2022 23:22:13 -0600 Subject: Pequeño arreglo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compilador/astree/expr.py | 2 +- compilador/astree/type.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compilador/astree/expr.py b/compilador/astree/expr.py index 1015d74..27e237a 100644 --- a/compilador/astree/expr.py +++ b/compilador/astree/expr.py @@ -24,7 +24,7 @@ from astree.graphable import Graphable from astree.type import Type from astree.ident import Ident -Expr = None +Expr = type(None) # An identifier access expression. # diff --git a/compilador/astree/type.py b/compilador/astree/type.py index e0e3fd1..0ca20f9 100644 --- a/compilador/astree/type.py +++ b/compilador/astree/type.py @@ -24,7 +24,7 @@ from enum import Enum from astree.graphable import Graphable from tabla import Token -Type = None +Type = type(None) # A built-in primitive type (int, bool, str, etc). class BuiltinType(Enum): -- cgit v1.2.3