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