1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

fix AboutJCType

This commit is contained in:
Kelly Brazil
2022-10-15 18:27:55 -07:00
parent 688c3a34f6
commit 4867052972

View File

@ -15,7 +15,7 @@ from types import ModuleType
from .lib import (
__version__, parser_info, all_parser_info, parsers, _get_parser, _parser_is_streaming,
parser_mod_list, standard_parser_mod_list, plugin_parser_mod_list, streaming_parser_mod_list,
JSONDictType
JSONDictType, ParserInfoType
)
from . import utils
from .cli_data import (
@ -27,7 +27,7 @@ from . import tracebackplus
from .exceptions import LibraryNotInstalled, ParseError
MetadataType = Dict[str, Optional[Union[str, int, float, List[str], datetime]]]
AboutJCType = Dict[str, Union[str, int, List[str]]]
AboutJCType = Dict[str, Union[str, int, List[ParserInfoType]]]
# make pygments import optional
PYGMENTS_INSTALLED: bool = False
@ -220,7 +220,7 @@ class JcCli():
return otext
@staticmethod
def about_jc() -> Dict[str, Union[str, int, List]]:
def about_jc() -> AboutJCType:
"""Return jc info and the contents of each parser.info as a dictionary"""
return {
'name': 'jc',