From cfa22067bcf2290ba81e81b270929072d4956640 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Tue, 25 Feb 2025 14:09:49 +0900 Subject: [PATCH] Use f-string Co-authored-by: Antoine Pitrou --- python/pyarrow/array.pxi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/pyarrow/array.pxi b/python/pyarrow/array.pxi index 0ae5b12245b4c..9b296a8a140e0 100644 --- a/python/pyarrow/array.pxi +++ b/python/pyarrow/array.pxi @@ -713,8 +713,7 @@ cdef class ArrayStatistics(_Weakrefable): """ def __init__(self): - raise TypeError("Do not call {}'s constructor directly" - .format(self.__class__.__name__)) + raise TypeError(f"Do not call {self.__class__.__name__}'s constructor directly") cdef void init(self, const shared_ptr[CArrayStatistics]& sp_statistics) except *: self.sp_statistics = sp_statistics