Add a __repr__

This commit is contained in:
Peter Law
2020-08-30 17:14:38 +01:00
parent 87388ae00f
commit 25a3e31ca8

View File

@@ -431,6 +431,9 @@ class NewType(Value):
from jedi.inference.compiled.value import CompiledValueName
return CompiledValueName(self, 'NewType')
def __repr__(self) -> str:
return '<NewType: %s>%s' % (self.tree_node, self._type_value_set)
class CastFunction(ValueWrapper):
@repack_with_argument_clinic('type, object, /')