Skip to content
Snippets Groups Projects
Commit 97970d8f authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX: defect type annotation

parent 052034ff
No related branches found
No related tags found
1 merge request!53Release 0.1
...@@ -66,11 +66,11 @@ import argparse ...@@ -66,11 +66,11 @@ import argparse
from argparse import RawTextHelpFormatter from argparse import RawTextHelpFormatter
import caosdb as db import caosdb as db
from .stores import GeneralStore, RecordStore from .stores import GeneralStore, RecordStore
from .structure_elements import StructureElement, Directory, File from .structure_elements import StructureElement, Directory
from .converters import Converter, DirectoryConverter from .converters import Converter, DirectoryConverter
from .identifiable_adapters import LocalStorageIdentifiableAdapter from .identifiable_adapters import LocalStorageIdentifiableAdapter
from collections import defaultdict from collections import defaultdict
from typing import Union from typing import Union, Any
class Crawler(object): class Crawler(object):
...@@ -180,7 +180,7 @@ class Crawler(object): ...@@ -180,7 +180,7 @@ class Crawler(object):
@staticmethod @staticmethod
def debug_build_usage_tree(converter: Converter): def debug_build_usage_tree(converter: Converter):
print(converter) print(converter)
res = { res: dict[str, dict[str, Any]] = {
converter.name: { converter.name: {
"usage": ", ".join(converter.metadata["usage"]), "usage": ", ".join(converter.metadata["usage"]),
"subtree": {} "subtree": {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment