forked from VimPlug/jedi
Add a __repr__
This commit is contained in:
@@ -431,6 +431,9 @@ class NewType(Value):
|
|||||||
from jedi.inference.compiled.value import CompiledValueName
|
from jedi.inference.compiled.value import CompiledValueName
|
||||||
return CompiledValueName(self, 'NewType')
|
return CompiledValueName(self, 'NewType')
|
||||||
|
|
||||||
|
def __repr__(self) -> str:
|
||||||
|
return '<NewType: %s>%s' % (self.tree_node, self._type_value_set)
|
||||||
|
|
||||||
|
|
||||||
class CastFunction(ValueWrapper):
|
class CastFunction(ValueWrapper):
|
||||||
@repack_with_argument_clinic('type, object, /')
|
@repack_with_argument_clinic('type, object, /')
|
||||||
|
|||||||
Reference in New Issue
Block a user