I think `key` is a string and `read()` expects an int. Should this be just ```suggestion return bytes.read() ``` _Originally posted by @DWesl in https://github.com/numpy/numpy/pull/29098#discussion_r2170606422_