�
K�g' � � � d dl mZ d dlmZmZ d dlZd dlmZm Z d dl
Z
d dlmZ dd �Z
ej d
i e�� G d
� d� � � � ZdS )� )�annotations)�Callable�MutableMappingN)�Any�Literal)�DATACLASS_KWARGS�valuer �returnc �V � | si S t | t � � rt | � � S | S )z�Convert Token.attrs set as ``None`` or ``[[key, value], ...]`` to a dict.
This improves compatibility with upstream markdown-it.
)�
isinstance�list�dict)r s �a/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/markdown_it/token.py�
convert_attrsr s4 � �
� �� ��%���� ��E�{�{���L� c �~ � e Zd ZU ded<