AlenkaF commented on code in PR #47139: URL: https://github.com/apache/arrow/pull/47139#discussion_r2230153290
########## python/pyarrow/types.py: ########## @@ -46,6 +48,86 @@ lib.Type_STRUCT, lib.Type_MAP} | _UNION_TYPES +class TypesEnum(IntEnum): + """ + An Enum that maps constant values to data types. + Exposes the underlying data types representation for type checking purposes. + Note that some of the types listed here are not supported by PyArrow yet: + INTERVAL_MONTHS and INTERVAL_DAY_TIME. + + Examples + -------- + >>> import pyarrow as pa + >>> from pyarrow.types import TypesEnum + >>> Review Comment: ```suggestion ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org