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