Commit 4126e20a authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor linting and broken sub-modules.

parent e7089e2d
Pipeline #61670 passed with stages
in 20 minutes and 55 seconds
Subproject commit 3c2cf8293c17a86ac91b852382e4856c17a30862
Subproject commit 2ac8d8e0292d3a233f331e9c76739174482568e5
\ No newline at end of file
from typing import Tuple, Dict, List, Type, TypeVar, Any
from typing import Tuple, Dict, List, Type, TypeVar, Any, cast
import os.path
import numpy as np
import json
......@@ -49,7 +49,7 @@ def convert_package(legacy_definitions: List[InfoKindEl], **kwargs) -> Package:
'double definition in legacy metainfo',, def_type='section')
definition = package.all_definitions.get(legacy_name)
definition: Definition = package.all_definitions.get(legacy_name)
if definition is None:
definition = package.m_create(
section_cls, name=legacy_name, description=legacy_def.description)
......@@ -57,8 +57,9 @@ def convert_package(legacy_definitions: List[InfoKindEl], **kwargs) -> Package:
if is_new:
all_defs[] = definition
return definition
return cast(T, definition)
definition: Definition = None
for legacy_def in legacy_definitions:
if legacy_def.kindStr == 'type_abstract_document_content':
definition = flux_box(, Category, is_new=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment