Doug Hoskisson
280b67f996
some worlds: some typing in LocalRom ( #3090 )
...
* some worlds: some typing in `LocalRom`
### `read_bytes`
It's not safe to return `bytearray` when we think it's `bytes`
```python
a = rom.read_bytes(8, 3)
hash(a) # This won't crash, right?
```
### `write_bytes`
`Iterable[SupportsIndex]` is what's required for `bytearray.__setitem__(slice, values)`
We need to add `__len__` for the `len(values)` in this function.
* remove `object` inheritance
2024-05-17 21:41:57 +02:00
..
2024-04-14 03:26:25 +02:00
2024-03-15 17:33:03 +01:00
2024-04-18 19:01:12 +02:00
2024-05-17 21:41:57 +02:00
2024-05-17 12:29:00 +02:00
2024-04-12 00:32:10 -04:00
2024-03-22 17:46:14 +01:00
2024-03-22 17:46:14 +01:00
2024-05-17 19:24:32 +02:00
2024-05-12 18:52:34 +02:00
2024-05-05 08:58:49 +02:00
2024-04-14 20:37:48 +02:00
2024-03-22 17:46:14 +01:00
2024-05-15 23:50:04 +02:00
2024-04-20 19:45:20 -05:00
2024-05-17 21:41:57 +02:00
2024-04-14 20:37:48 +02:00
2024-05-10 16:29:07 +02:00
2024-05-10 16:29:07 +02:00
2024-04-24 06:24:44 +02:00
2024-05-17 19:19:55 +02:00
2024-04-18 18:42:28 +02:00
2024-05-14 20:28:15 +02:00
2024-05-10 16:29:07 +02:00
2024-05-02 15:26:17 +02:00
2024-05-14 20:35:32 +02:00
2024-04-18 18:52:23 +02:00
2024-04-18 18:55:27 +02:00
2024-04-14 20:37:48 +02:00
2024-03-22 17:46:14 +01:00
2024-05-04 08:40:17 +02:00
2024-04-18 18:56:32 +02:00
2024-05-12 18:52:34 +02:00
2024-05-17 10:18:50 +02:00
2024-04-06 19:25:26 -04:00
2024-05-06 09:15:06 +02:00
2024-04-18 19:02:01 +02:00
2024-04-14 20:23:13 +02:00
2024-05-02 12:02:14 +02:00
2024-04-14 20:37:48 +02:00
2024-04-14 20:37:48 +02:00
2024-05-08 18:26:13 +02:00
2024-04-14 20:37:48 +02:00
2024-03-22 17:46:14 +01:00
2024-03-22 17:46:14 +01:00
2024-04-09 21:14:18 +02:00
2024-04-18 19:00:01 +02:00
2024-05-02 12:20:57 +02:00
2024-03-22 17:46:14 +01:00
2024-03-31 17:55:08 +02:00
2024-04-18 18:54:46 +02:00
2024-05-03 12:23:08 +02:00
2024-05-17 21:41:57 +02:00
2024-04-21 11:44:17 -05:00
2024-05-06 10:55:25 +02:00
2024-04-14 20:37:48 +02:00
2024-04-20 19:41:00 -05:00
2024-04-14 20:36:25 +02:00
2024-04-14 02:18:02 +02:00
2024-04-14 20:37:48 +02:00
2024-05-03 02:56:20 +02:00
2024-05-03 07:21:27 +02:00
2024-04-14 20:37:48 +02:00
2024-03-22 17:46:14 +01:00
2024-05-16 18:46:13 +02:00
2024-05-17 19:29:55 +02:00
2024-05-17 21:41:57 +02:00
2024-05-17 19:23:05 +02:00
2024-05-13 20:31:15 +02:00
2024-04-18 18:47:27 +02:00
2024-03-28 22:21:56 +01:00
2024-03-07 10:18:22 +01:00
2024-05-14 04:35:33 +02:00
2024-03-22 09:02:38 +01:00
2024-04-16 23:03:30 +02:00