Use the .is_*() methods available for all datatypes (docs):
.is_*()
import polars as pl assert pl.UInt8.is_numeric() assert not pl.UInt8.is_temporal()