diff options
| -rw-r--r-- | python/types.py | 2 | ||||
| -rw-r--r-- | suite/api_test.py | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/python/types.py b/python/types.py index 61f959d6..65a9f311 100644 --- a/python/types.py +++ b/python/types.py @@ -538,8 +538,6 @@ class TypeBuilder: return not self.__eq__(other) def __repr__(self): - if self._confidence < core.max_confidence: - return f"<type: mutable:{self.type_class.name} '{self}', {self._confidence * 100 // core.max_confidence}% confidence>" return f"<type: mutable:{self.type_class.name} '{self}'>" def __str__(self): diff --git a/suite/api_test.py b/suite/api_test.py index c44e34ac..f116941c 100644 --- a/suite/api_test.py +++ b/suite/api_test.py @@ -440,6 +440,7 @@ class TypeBuilderTest(unittest.TestCase): assert ib.signed assert len(ib) == 4 assert ib == ib.immutable_copy().mutable_copy(), "IntegerBuilder failed to round trip mutability" + assert repr(ib).startswith("<type:") def test_CharBuilder(self): b = TypeBuilder.char("my_char") |
