Skip to content

Commit

Permalink
Use f-string
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Pitrou <[email protected]>
  • Loading branch information
kou and pitrou authored Feb 25, 2025
1 parent cc2747c commit cfa2206
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/pyarrow/array.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfa2206

Please sign in to comment.