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