� M�gS��@�dZddlmZddlZddlmZd�Zd�Zd'd�ZGd�d e��Z e d e fi��Z e e _ d e _edfd �Zedfd �Zedfd�Zedfd�Zefd�Zefd�ZGd�d��Zd�Zd�ZGd�d��ZGd�d��Ze��ZGd�de��Ze��ZGd�de���ZGd�d e���ZGd!�d"e���ZGd#�d$e���Z eeee fD]"Z!d%�"e!j �&��e!_�#[!dS)(z�Defines experimental extensions to the standard "typing" module that are supported by the mypy typechecker. Example usage: from mypy_extensions import TypedDict �)�AnyN�� _type_checkc�� tjd��jddvrtd���n#tt f$rYnwxYwdS)N��__name__)�abc� functools�typingz4TypedDict does not support instance and class checksF)�sys� _getframe� f_globals� TypeError�AttributeError� ValueError)�cls�others �_/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/mypy_extensions.py� _check_failsrsf�� � �=�� � � %�j� 1�9W� W� W��R�S�S� S� X�� �J� '� � � � �� ���� �5s�03�A�Ac��t|i|��S�N)�dict)r�args�kwargss r� _dict_newrs�� �� �� � � �c �2�|�dd��}|�|}n|rtd���t|��|d�} tjd��j�dd��|d<n#ttf$rYnwxYwt|d |��S) N�totalTz@TypedDict takes either a dict or keyword arguments, but not both)�__annotations__� __total__rr�__main__� __module__�) �poprrr r r�getrr�_TypedDictMeta)r� _typename�_fieldsrr�nss r�_typeddict_newr*s��� �J�J�w�� %� %�E������ �)��(�)�)� )�"�'�]�]�� ?� ?�B� ��=��+�+�5�9�9�*�j�Q�Q��<���� �J� '� � � � �� ���� �)�R�� ,� ,�,s�0A1�1B�Bc�(��eZdZd�fd� ZexZZ�xZS)r&Tc����|dkrtnt|d<tt|���||t f|��}|�di��}d��fd�|���D��}|D]0}|�|j �di�����1||_ t|d��s||_ |S)N� TypedDict�__new__rz?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a typec�8��i|]\}}|t|�����Sr#r)�.0�n�tp�msgs �r� <dictcomp>z*_TypedDictMeta.__new__.<locals>.<dictcomp>=s)���B�B�B�E�A�r��;�r�3�'�'�B�B�Brr ) r*r�superr&r.rr%�items�update�__dict__r�hasattrr ) r�name�basesr)r�tp_dict�anns�baser3� __class__s @�rr.z_TypedDictMeta.__new__1s�����+/�+�*=�*=���9��9� ����,�,�4�4�S�$����L�L���v�v�'��,�,��O��B�B�B�B�T�Z�Z�\�\�B�B�B��� B� B�D� �K�K�� �)�)�*;�R�@�@� A� A� A� A�"&����w� �,�,� &� %�G� ��r)T)rr"� __qualname__r.r�__instancecheck__�__subclasscheck__� __classcell__)r?s@rr&r&0sC�������������(-9�8��)�)�)�)�)rr&r-aA simple typed name space. At runtime it is equivalent to a plain dict. TypedDict creates a dictionary type that expects all of its instances to have a certain set of keys, with each key associated with a value of a consistent type. This expectation is not checked at runtime but is only enforced by typecheckers. Usage:: Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'label': str}) a: Point2D = {'x': 1, 'y': 2, 'label': 'good'} # OK b: Point2D = {'z': 3, 'label': 'bad'} # Fails type check assert Point2D(x=1, y=2, label='first') == dict(x=1, y=2, label='first') The type info could be accessed via Point2D.__annotations__. TypedDict supports two additional equivalent forms:: Point2D = TypedDict('Point2D', x=int, y=int, label=str) class Point2D(TypedDict): x: int y: int label: str The latter syntax is only supported in Python 3.6+, while two other syntax forms work for 3.2+ c��|S)zA normal positional argumentr#��typer:s r�ArgrGk��� �Krc��|S)z*A positional argument with a default valuer#rEs r� DefaultArgrJprHrc��|S)zA keyword-only argumentr#rEs r�NamedArgrLurHrc��|S)z,A keyword-only argument with a default valuer#rEs r�DefaultNamedArgrNzrHrc��|S)z*A *args-style variadic positional argumentr#�rFs r�VarArgrQrHrc��|S)z*A **kwargs-style variadic keyword argumentr#rPs r�KwArgrS�rHrc��eZdZdS)�NoReturnN)rr"r@r#rrrUrU�s�������rrUc��|Srr#)rs r�traitrW�s�� �Jrc��d�S)Nc��|Srr#)�xs r�<lambda>zmypyc_attr.<locals>.<lambda>�s��Q�rr#)�attrs�kwattrss r� mypyc_attrr^�s �� �;�rc��eZdZd�Zd�ZdS)�_FlexibleAliasClsAppliedc��||_dSr��val)�selfrcs r�__init__z!_FlexibleAliasClsApplied.__init__�s ������rc��|jSrrb�rdrs r� __getitem__z$_FlexibleAliasClsApplied.__getitem__�s ���x�rN)rr"r@rerhr#rrr`r`�s2�������������rr`c��eZdZd�ZdS)�_FlexibleAliasClsc�,�t|d��S)N�����)r`rgs rrhz_FlexibleAliasCls.__getitem__�s��'��R��1�1�1rN)rr"r@rhr#rrrjrj�s#������2�2�2�2�2rrjc��eZdZd�ZdS)�_NativeIntMetac�,�t|t��Sr)� isinstance�int)r�insts rrAz _NativeIntMeta.__instancecheck__�s���$��$�$�$rN)rr"r@rAr#rrrnrn�s#������%�%�%�%�%rrnc��eZdZdefd�ZdS)�i64rc�R�|turt||��St|��Sr�� _sentinelrq�rrZr>s rr.z i64.__new__��&�� �y� � ��q�$�<�<� ��1�v�v� rN�rr"r@rwr.r#rrrtrt��-�������y������rrt)� metaclassc��eZdZdefd�ZdS)�i32rc�R�|turt||��St|��Srrvrxs rr.z i32.__new__�ryrNrzr#rrr~r~�r{rr~c��eZdZdefd�ZdS)�i16rc�R�|turt||��St|��Srrvrxs rr.z i16.__new__�ryrNrzr#rrr�r��r{rr�c��eZdZdefd�ZdS)�u8rc�R�|turt||��St|��Srrvrxs rr.z u8.__new__�ryrNrzr#rrr�r��r{rr�a/A native fixed-width integer type when used with mypyc. In code not compiled with mypyc, behaves like the 'int' type in these runtime contexts: * {name}(x[, base=n]) converts a number or string to 'int' * isinstance(x, {name}) is the same as isinstance(x, int) )r:r)#�__doc__r rr rrrr*rFr&rr-rr"rGrJrLrNrQrSrUrWr^r`rj� FlexibleAliasrn�objectrwrtr~r�r�� _int_type�formatr#rr�<module>r�s9���������� � � � ����������!�!�!�-�-�-�-�$9�9�9�9�9�T�9�9�9�0 �N�;���� 4� 4� �� ��� ��B�t����� �d����� �D����� �4����� ����� ����� �������������� ��������2�2�2�2�2�2�2�2� "�!�#�#� �%�%�%�%�%�T�%�%�%� �F�H�H� ������N����������N����������N����������>������c�3��"� ,� ,�I� � �F� �*�F� +� +�����I�Ir
Memory