Skip to content

Commit 202ac80

Browse files
authored
Merge pull request #63 from leftbyte/import-type-checking
add type checking to break circular import
2 parents 46e378c + 2a15f17 commit 202ac80

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

chc/util/ConfigLocal.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ The config object passed to getLocals is the universal Config, you can update
3434
any of that config's variables here if you want to use a value other than the default.
3535
"""
3636

37-
import os
37+
from typing import TYPE_CHECKING
3838

39-
import chc.util.Config
39+
if TYPE_CHECKING:
40+
from chc.util.Config import Config
4041

4142

42-
def getLocals(config: chc.util.Config.Config) -> None:
43+
def getLocals(config: Config) -> None:
4344
'''Set local configuration variables here if they differ from the defaults in Config.py
4445

4546
Example :

0 commit comments

Comments
 (0)