From 2a15f17331cb25dc4870ec10ecdd9c208be1d4d1 Mon Sep 17 00:00:00 2001 From: Dan Phung Date: Mon, 12 Jan 2026 12:34:08 -0800 Subject: [PATCH] add type checking to break circular import --- chc/util/ConfigLocal.template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chc/util/ConfigLocal.template b/chc/util/ConfigLocal.template index e1237c4..90b9c52 100644 --- a/chc/util/ConfigLocal.template +++ b/chc/util/ConfigLocal.template @@ -34,12 +34,13 @@ The config object passed to getLocals is the universal Config, you can update any of that config's variables here if you want to use a value other than the default. """ -import os +from typing import TYPE_CHECKING -import chc.util.Config +if TYPE_CHECKING: + from chc.util.Config import Config -def getLocals(config: chc.util.Config.Config) -> None: +def getLocals(config: Config) -> None: '''Set local configuration variables here if they differ from the defaults in Config.py Example :