Skip to content

Commit 72cfe41

Browse files
committed
Review self._buf type interactions with mmap.mmap
This patch adds type annotations along the flow from some parameters named `buf` were changed from being typed `array.array` to `mmap.mmap`. This review seems to show there are no type conflicts along these specific changes, according to `mypy` as it runs in CI. These changes were tested in Pythons 3.8 through 3.12. No effects were observed on Make-managed files. Disclaimer: Participation by NIST in the creation of the documentation of mentioned software is not intended to imply a recommendation or endorsement by the National Institute of Standards and Technology, nor is it intended to imply that any specific software is necessarily the best available for the purpose. Signed-off-by: Alex Nelson <[email protected]>
1 parent 543a94d commit 72cfe41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indxparse/MFT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ def len(self) -> int:
16081608
else:
16091609
return floored_result + 1
16101610

1611-
def get_record_buf(self, record_num):
1611+
def get_record_buf(self, record_num: int) -> array.array:
16121612
"""
16131613
@raises OverrunBufferException: if the record_num is beyond the end of the MFT
16141614
"""

0 commit comments

Comments
 (0)