The markdown_table.init() method has a misleading type hint for the data parameter:
data: Union[List[Dict], Dict]
However, the validation logic immediately rejects any Dict input:
if not isinstance(data, list) or not all(isinstance(elem, dict) for elem in data):
raise ValueError("data is not of type list or elements are not of type dict")
The type hint should accurately reflect that only List[Dict] is accepted.
The markdown_table.init() method has a misleading type hint for the data parameter:
However, the validation logic immediately rejects any Dict input:
The type hint should accurately reflect that only List[Dict] is accepted.