o
    FÆhó  ã                   @   sÄ   d Z ddlZddlmZmZ 										ddeedf deedf deedf deedf deedf d	eedf d
eedf deedf deedf deedf deeef fdd„ZdS )z˜
This module contains utility functions for working with dataclasses in Python.

DO NOT USE THIS MODULE DIRECTLY. IT IS INTENDED FOR INTERNAL USE ONLY.
é    N)ÚAnyÚUnionÚinitÚreprÚeqÚorderÚunsafe_hashÚfrozenÚ
match_argsÚkw_onlyÚslotsÚweakref_slotÚreturnc
                 C   s¼   i }
| dur
| |
d< |dur||
d< |dur||
d< |dur"||
d< |dur*||
d< |dur2||
d< t jdkrO|dur?||
d	< |durG||
d
< |durO||
d< t jdkr\|	dur\|	|
d< |
S )a3  
    Generates a dictionary of keyword arguments that can be passed to a Python
    dataclass. This function allows specifying attributes related to the behavior
    and configuration of dataclasses, including attributes added in specific
    Python versions. This abstraction improves compatibility across different
    Python versions by ensuring only the parameters supported by the current
    version are included.

    :return: A dictionary containing the specified dataclass configuration that
        dynamically adapts to the current Python version.
    Nr   r   r   r   r   r	   )é   é
   r
   r   r   )r   é   r   )ÚsysÚversion_info)r   r   r   r   r   r	   r
   r   r   r   Úparams© r   úJ/var/www/html/venv/lib/python3.10/site-packages/aiogram/utils/dataclass.pyÚdataclass_kwargs   s0   

r   )
NNNNNNNNNN)	Ú__doc__r   Útypingr   r   ÚboolÚdictÚstrr   r   r   r   r   Ú<module>   sH    ö
ÿ
þ
ý
ü
û
ú
ù
ø
	÷

ö
õ