meta: fix type for ModuleInfo's info ctor param

It is a in fact a dict, not a string.
This commit is contained in:
Christian Kellner 2021-02-10 11:25:16 +00:00
parent 94dc11a910
commit 3f18b9d682

View file

@ -29,7 +29,7 @@ import pkgutil
import json
import sys
from collections import deque
from typing import Iterable, List, Optional
from typing import Dict, Iterable, List, Optional
import jsonschema
@ -277,7 +277,7 @@ class ModuleInfo:
Normally this class is instantiated via its `load` method.
"""
def __init__(self, klass: str, name: str, path: str, info: str):
def __init__(self, klass: str, name: str, path: str, info: Dict):
self.name = name
self.type = klass
self.path = path