From b096ee3b7a5ef15b3c9067c06af1b30902a9f58c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 16 May 2023 16:30:30 -0400 Subject: [PATCH] Make `FeedInit.shm_write_opts` an empty dict by default --- piker/data/validate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/piker/data/validate.py b/piker/data/validate.py index 2b07a094..c295c179 100644 --- a/piker/data/validate.py +++ b/piker/data/validate.py @@ -49,7 +49,11 @@ class FeedInit(Struct, frozen=True): ''' mkt_info: MktPair - shm_write_opts: dict[str, Any] | None = None + + # NOTE: only field we use rn in ``.data.feed`` + # TODO: maybe make a SamplerConfig(Struct)? + shm_write_opts: dict[str, Any] = {} + # 'sum_tick_vlm': True def validate_backend(