rok commented on code in PR #13454:
URL: https://github.com/apache/arrow/pull/13454#discussion_r915044913


##########
python/pyarrow/types.pxi:
##########
@@ -902,6 +902,22 @@ cdef class ExtensionType(BaseExtensionType):
         """
         return ExtensionArray
 
+    def scalar_as_py(self, scalar):
+        """Convert scalar to a Python type.
+
+        This method can be overridden in subclasses to customize what type
+        scalars are converted to.
+
+        Parameters
+        ----------
+        scalar : pyarrow.ExtensionScalar
+          The scalar to be converted to a Python object.
+
+        Returns
+        -------
+        Scalar value as a native Python object.
+        """
+        return scalar.as_py()

Review Comment:
   Oh I see, sorry. Is 
[this](https://github.com/apache/arrow/pull/13454/files#diff-9f6b1034bb57bace094700a1b4748c88e40c9f98aec94a959ca466b5cbce0401)
 better?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to