Skip to content

Commit 7b73fbb

Browse files
committed
Allow mbox returned from _read_ms_from_byte_stream to be None
1 parent 9f5540a commit 7b73fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shapefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ class _HasM(_CanHaveBBox):
14921492
@staticmethod
14931493
def _read_ms_from_byte_stream(
14941494
b_io: ReadSeekableBinStream, nPoints: int, next_shape: int
1495-
) -> tuple[MBox, list[float | None]]:
1495+
) -> tuple[MBox | None, list[float | None]]:
14961496
mbox = None # Ensure mbox is always defined
14971497
if next_shape - b_io.tell() >= 16:
14981498
mbox = unpack("<2d", b_io.read(16))

0 commit comments

Comments
 (0)