Skip to content

Commit c87b2b0

Browse files
committed
Update nodes.py
1 parent 9165833 commit c87b2b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ def __init__(self) -> None:
19151915
self.type_is: mypy.types.Type | None = None
19161916

19171917
def __repr__(self) -> str:
1918-
return f"<{type(self).__name__} fullname={self.fullname} of {self.node} object at {hex(id(self))}>"
1918+
return f"<{type(self).__name__} fullname={self.fullname} type={self.type_is} of {self.node} object at {hex(id(self))}>"
19191919

19201920
@property
19211921
def fullname(self) -> str:
@@ -1943,7 +1943,7 @@ def __init__(self, name: str) -> None:
19431943
self.is_special_form = False
19441944

19451945
def __repr__(self) -> str:
1946-
return f"<{type(self).__name__} fullname={self.fullname} special_form={self.is_special_form} of {self.node} object at {hex(id(self))}>"
1946+
return f"<{type(self).__name__} fullname={self.fullname} type={self.type_is} special_form={self.is_special_form} of {self.node} object at {hex(id(self))}>"
19471947

19481948
def accept(self, visitor: ExpressionVisitor[T]) -> T:
19491949
return visitor.visit_name_expr(self)

0 commit comments

Comments
 (0)