1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-11 01:10:37 +02:00

try new pydoc-markdown formatting options

This commit is contained in:
Kelly Brazil
2022-01-26 11:50:25 -08:00
parent 7cc147fe2d
commit 590728f9c1
91 changed files with 506 additions and 17 deletions

View File

@ -140,15 +140,15 @@ def _get_parser(parser_mod_name):
modpath = 'jcparsers.' if parser_cli_name in local_parsers else 'jc.parsers.'
return importlib.import_module(f'{modpath}{parser_mod_name}')
def parse(parser_mod_name: str,
data: Union[str, Iterable[str]],
quiet: Optional[bool] = False,
raw: Optional[bool] = False,
ignore_exceptions: Optional[Union[None, bool]] = None,
**kwargs: Any,
) -> Union[Dict[str, Any],
List[Dict[str, Any]],
Iterator[Dict[str, Any]]]:
def parse(
parser_mod_name: str,
data: Union[str, Iterable[str]],
quiet: Optional[bool] = False,
raw: Optional[bool] = False,
ignore_exceptions: Optional[Union[None, bool]] = None,
**kwargs: Any,
) -> Union[Dict[str, Any], List[Dict[str, Any]], Iterator[Dict[str, Any]]]:
"""
Parse the string data using the supplied parser module.