From 7d2e9bff46f57e3a4277b07b4474253ad93c78a7 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 16 Feb 2022 12:16:07 -0500 Subject: [PATCH] Type annot updates --- piker/data/_sampling.py | 4 +++- piker/data/feed.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/data/_sampling.py b/piker/data/_sampling.py index d31bf7b1..4228f809 100644 --- a/piker/data/_sampling.py +++ b/piker/data/_sampling.py @@ -22,14 +22,16 @@ financial data flows. from __future__ import annotations from collections import Counter import time +from typing import TYPE_CHECKING import tractor import trio from trio_typing import TaskStatus -from ._sharedmem import ShmArray from ..log import get_logger +if TYPE_CHECKING: + from ._sharedmem import ShmArray log = get_logger(__name__) diff --git a/piker/data/feed.py b/piker/data/feed.py index 260cab9b..19504204 100644 --- a/piker/data/feed.py +++ b/piker/data/feed.py @@ -20,6 +20,7 @@ Data feed apis and infra. This module is enabled for ``brokerd`` daemons. """ +from __future__ import annotations from dataclasses import dataclass, field from contextlib import asynccontextmanager from functools import partial