Skip to content

Commit 91fea11

Browse files
committed
refact: make dict_join() private
1 parent 22a2741 commit 91fea11

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/arch/z80/backend/runtime/labels.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# Runtime Labels
2-
3-
from typing import Dict
4-
52
from . import core, datarestore, io, math, misc, random
63
from .namespace import NAMESPACE
74

@@ -22,7 +19,7 @@ class Labels(
2219
RUNTIME_LABELS: set[str] = set(getattr(Labels, x) for x in dir(Labels) if not x.startswith("__") and x != "NAMESPACE")
2320

2421

25-
def dict_join(*args: Dict[str, str]) -> Dict[str, str]:
22+
def _dict_join(*args: dict[str, str]) -> dict[str, str]:
2623
assert all(isinstance(x, dict) for x in args)
2724
result = {}
2825

@@ -35,7 +32,7 @@ def dict_join(*args: Dict[str, str]) -> Dict[str, str]:
3532
return result
3633

3734

38-
LABEL_REQUIRED_MODULES = dict_join(
35+
LABEL_REQUIRED_MODULES = _dict_join(
3936
core.REQUIRED_MODULES,
4037
datarestore.REQUIRED_MODULES,
4138
math.REQUIRED_MODULES,

0 commit comments

Comments
 (0)