Skip to content

Commit 487f045

Browse files
committed
Typo fix
1 parent 92f5166 commit 487f045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngcsimlib/_src/context/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def load(directory: str, module_name: str) -> "Context":
320320
delayed_load = []
321321

322322
for _type in metaData["types"]:
323+
323324
type_path = f"{path}/{make_safe_filename(_type)}"
324325
with open(f"{type_path}/roots.json", "r") as fp:
325326
typeRoots = json.load(fp)
@@ -329,7 +330,6 @@ def load(directory: str, module_name: str) -> "Context":
329330
args = objData["args"]
330331
kwargs = objData["kwargs"]
331332
newObj = objKlass(*args, **kwargs)
332-
333333
delayed_load.append((
334334
getattr(newObj, "_priority", 0), newObj,
335335
objData, type_path))
@@ -339,7 +339,7 @@ def load(directory: str, module_name: str) -> "Context":
339339
for _, obj, data, type_path in delayed_load:
340340
if hasattr(obj, "from_json") and callable(
341341
getattr(obj, "from_json")):
342-
obj.from_json(objData)
342+
obj.from_json(data)
343343

344344
if hasattr(obj, "load") and callable(getattr(obj, "load")):
345345
obj.load(f"{type_path}/custom")

0 commit comments

Comments
 (0)