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


##########
python/pyarrow/types.pxi:
##########
@@ -1591,6 +1591,100 @@ cdef class ExtensionType(BaseExtensionType):
         return ExtensionScalar
 
 
+cdef class VariableShapeTensorType(BaseExtensionType):
+    """
+    Concrete class for variable shape tensor extension type.
+
+    Examples
+    --------
+    Create an instance of variable shape tensor extension type:
+
+    >>> import pyarrow as pa
+    >>> pa.variable_shape_tensor(pa.int32(), 2)
+    VariableShapeTensorType(extension<arrow.variable_shape_tensor>)

Review Comment:
   Good point! Added.



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