dianaclarke commented on a change in pull request #8312:
URL: https://github.com/apache/arrow/pull/8312#discussion_r499630292
##########
File path: python/pyarrow/types.pxi
##########
@@ -697,6 +697,9 @@ cdef class ExtensionType(BaseExtensionType):
else:
return NotImplemented
+ def __str__(self):
Review comment:
Just to confirm, if I remove the `__str__`, the output changes as
follows. Is this what you're looking for? Thanks!
```
def test_ext_type_str():
ty = IntegerType()
expected = "extension<arrow.py_extension_type<IntegerType>>"
assert str(ty) == expected
assert pa.DataType.__str__(ty) == expected
def test_ext_type_repr():
ty = IntegerType()
expected = "IntegerType(extension<arrow.py_extension_type<IntegerType>>)"
assert repr(ty) == expected
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]