File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1501,9 +1501,9 @@ def _setup_dtype(self) -> np.dtype:
1501
1501
for i , typ in enumerate (self .typlist ):
1502
1502
if typ in self .NUMPY_TYPE_MAP :
1503
1503
typ = cast (str , typ ) # only strs in NUMPY_TYPE_MAP
1504
- dtypes .append (("s" + str ( i ), self .byteorder + self .NUMPY_TYPE_MAP [typ ]))
1504
+ dtypes .append ((f"s { i } " , f" { self .byteorder } { self .NUMPY_TYPE_MAP [typ ]} " ))
1505
1505
else :
1506
- dtypes .append (("s" + str ( i ), "S" + str ( typ ) ))
1506
+ dtypes .append ((f"s { i } " , f"S { typ } " ))
1507
1507
self ._dtype = np .dtype (dtypes )
1508
1508
1509
1509
return self ._dtype
@@ -1571,10 +1571,10 @@ def _read_value_labels(self) -> None:
1571
1571
n = self ._read_uint32 ()
1572
1572
txtlen = self ._read_uint32 ()
1573
1573
off = np .frombuffer (
1574
- self .path_or_buf .read (4 * n ), dtype = self .byteorder + " i4" , count = n
1574
+ self .path_or_buf .read (4 * n ), dtype = f" { self .byteorder } i4" , count = n
1575
1575
)
1576
1576
val = np .frombuffer (
1577
- self .path_or_buf .read (4 * n ), dtype = self .byteorder + " i4" , count = n
1577
+ self .path_or_buf .read (4 * n ), dtype = f" { self .byteorder } i4" , count = n
1578
1578
)
1579
1579
ii = np .argsort (off )
1580
1580
off = off [ii ]
You can’t perform that action at this time.
0 commit comments