piker/piker/storage
Gud Boi 0a2059d00f Use `tractor.ipc._shm` types directly across codebase
Port all 16 internal import sites from re-exporting
via `piker.data._sharedmem` shim to importing core
shm types directly from `tractor.ipc._shm`.

Deats,
- `ShmArray` now imported from tractor in 10 files.
- `_Token` renamed to `NDToken` everywhere (5 files).
- `attach_shm_array` → `attach_shm_ndarray` at all
  call sites.
- `data/__init__.py` sources `ShmArray`,
  `get_shm_token` from tractor; keeps
  `open/attach_shm_array` as public API aliases.
- Trim shim to only piker-specific wrappers:
  `_make_token()`, `maybe_open_shm_array()`,
  `try_read()`.
- Drop `Optional` usage in shim, use `|None`.

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-03-17 18:00:29 -04:00
..
marketstore Flip `tractor.breakpoint()`s to new `.pause()` 2023-07-26 12:48:19 -04:00
__init__.py `.storage.__init__`: code styling updates 2026-02-22 22:08:34 -05:00
cli.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00
nativedb.py Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00