Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
compat.cpython-313.pyc84 linesDownload Raw Back to __pycache__
1�

2��j�3��X�SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK3r4SSKrSSKJr SSKJ
r
 SSKJr SSKJr SSKJr SS	KJr SS5KJr SSKJr SSKJr SS
KJr SSKJr SSKJr SSKJr \	R2S:�r\	R2S:�r\	R2S:�r\	R2S:�r\	R2S:�r\	R2S:�r\	R2S:�r \	R2S:�r!\RD"5S:Hr#\RD"5S:Hr$\%"\6RL"S55r'\	RRQS5r)\	RRQS5r*S\RV"5RY5;r-\	R\S:�r/\%"\$5r0\Rbr2\"S S!S"9r3\(a<SS#K4J5r5 SS$K4J6r6 S%r7\8RrS&Rtr;S'r<SDS(jr=SES)jr>O\(aSES*jr>OSES+jr>"S,S-\R~5r@SFS.jrA\ (aSGS/jrBOSGS0jrB\R�(d\!(aSS1KDJErF OSSKFrF\R�(d\ (a
\R�rHOSHS2jrH\(a\IrJO\K"5rLSS3KMJNrN \L4S4jrJS5rOS6rPSIS7jrQSJS8jrRSKS9jrSS:rTSLS;jrUSSSS<00\VS=S>S?S@\U4SMSAjjrWSNSBjrXSNSCjrY\'(aSSKZrZ\ZR�"5r\gSSK]r]\]R�"5r\g)Oz1Handle Python version/platform incompatibilities.�)�annotationsN)�Any)�Callable)�cast)�Dict)�Iterable)�List)�Mapping)�Optional)�Sequence)�Set)�Tuple)�Type)�TypeVar)��r�beta�)rr)r�
)r�)r�)r�7)r�	)r��PyPy�CPython�Py_GIL_DISABLED�win�darwin�aarchl�_T_coT)�	covariant)�call_annotate_function)�Formatc��[USS5nUb0[X!US9n[U[5(d[	U<S35eU$g)N�__annotate__)�ownerz!.__annotate__ returned a non-dict)�getattrr#�8isinstance�dict�9ValueError)�obj�format�annotate�anns    �\D:\code\apps\devtools\python\user_packages\Python313\site-packages\sqlalchemy/util/compat.py�_get_and_call_annotater1DsJ���3���5����(���E�C��c�4�(�(� �C�7�*K�!L�M�M��J���__annotations__c���[U[5(a
[U5nO[	USS5nUc0$[U[105(d[
U<S35e[U5$![a 0s$f=f)Nr3z+.__annotations__ is neither a dict nor None)r)�type�_BASE_GET_ANNOTATIONS�AttributeErrorr(r*r+)r,r/s  r0�_get_dunder_annotationsr8Ps����c�4� � �
�+�C�0��11�#�0�$�7�C��{��	��#�t�$�$���'�D�E��
��C�y���"�
��	�
�s�A$�$A3�2A3c�$�[U5nUb[U5$[X5nUc[U5nUc6[	U[125(d[
U5(a0$[U<S35eU(d0$[U5$![a Nrf=f)z:A sparse implementation of annotationlib.get_annotations()z does not have annotations)r8r*�	Exceptionr1r)r5�callable�	TypeError)r,r-r/s   r0�_vendored_get_annotationsr=bs���13	!�)�#�.�C����C�y� ��%�S�1���;�*�#�.�C��;��#�t�$�$���
�
��	��s�g�%?�@�A�A���I��C�y���1�	��	�s�B�14B�Bc�2�[U[RS9$)N)r-)r=r$�15FORWARDREF�r,s r0�get_annotationsrA�s��)��V�5F�5F�G�Gr2c�.�[R"U5$�N)�inspectrAr@s r0rArA�s���&�&�s�+�+r2c���[U[5(aURRSS5nO
[	USS5nSSKJn UcUR$[SU5$)Nr3r)�_collections�Mapping[str, Any])	r)r5�__dict__�getr(�rF�16EMPTY_DICTr)r,r/rFs   r0rArA�sY���c�4� � ��,�,�"�"�#4�d�;�C��#�0�$�7�C�"��;��*�*�*��+�S�1�1r2c�\�\rSrSr%S\S'S\S'S\S'S\S'S\S	'S17\S'S\S
'Srg)�FullArgSpec��	List[str]�args�
Optional[str]�varargs�varkwzOptional[Tuple[Any, ...]]�defaults�18kwonlyargszOptional[Dict[str, Any]]�kwonlydefaultsrGr�N)�__name__�19__module__�__qualname__�__firstlineno__r3�__static_attributes__rWr2r0rMrM�s+��20�O�
����'�'���,�,�"�"r2rMc���[R"U5(aURn[R"U5(d[	U<S35eUR21n[R"U5(d[	U<S35eURnURnURn[USU5n[X2X$-5nX$-
nSnUR[R-(aURUnUS-nSnUR[R-(aURUn[UUUURUUR [#U55$)z9Fully vendored version of getfullargspec from Python 3.3.z is not a Python functionz is not a code objectNr)rD�ismethod�__func__�22isfunctionr<�__code__�iscode�co_argcount�co_varnames�co_kwonlyargcount�list�co_flags�23CO_VARARGS�CO_VARKEYWORDSrM�__defaults__�__kwdefaults__rA)	�func�co�nargs�names�nkwargsrPrUrRrSs	         r0�inspect_getfullargspecrq�s9���������}�}�����d�#�#��4�(�";�<�=�=�	
���B��>�>�"����2�&� 5�6�7�7��N�N�E��N�N�E��"�"�G���f�u�
��D��e�E�O�4�5�J�	��E��G�	�{�{�W�'�'�'��.�.��'����	���E�	�{�{�W�+�+�+����u�%�����
������������r2c�*�[R"SS9$)NF)�usedforsecurity��hashlib�md5rWr2r0�md5_not_for_securityrw�s���{�{�5�1�1r2c�,�[R"5$rCrtrWr2r0rwrw�s���{�{�}�r2)�metadatac�H�UR5nURU5 U$rC)�copy�update��a�bs  r0�24dict_unionr��s��
�F�F�H��	������r2)�
AsyncIteratorc���# �[U[5(d[S[U535e[U5RnU"U5IShv�N$N![25a U[LaeUs$f=f7f)z9vendored from https://github.com/python/cpython/pull/8895z%anext expected an AsyncIterator, got N)r)r�r<r5�	__anext__�StopAsyncIteration�
_NOT_PROVIDED)�async_iterator�default�anxts   r0�anext_r��sw����.�-�8�8��7��^�8L�7M�N��
��N�#�-�-��	��n�-�-�-�-��!�	��-�'���N�	�s<�AA3�A�A�A�A3�A�A0�-A3�/A0�0A3c��[R"5n[R(d[	US5(aURUS9$UR
US5$)N�select)�grouprW)�importlib_metadata�entry_points�typing�
TYPE_CHECKING�hasattrr�rI)r��eps  r0�importlib_metadata_getr�sG��	�	(�	(�	*�B�
���w�r�8�4�4��y�y�u�y�%�%��v�v�e�R� � r2c�$�URS5$)Nzlatin-1)�encode)�ss r0rrs���8�8�I��r2c�L�[R"URS55$�N�ascii)�base64�	b64decoder���xs r0r�r�s�����A�H�H�W�-�.�.r2c�L�[R"U5RS5$r�)r��	b64encode�decoder�s r0r�r�s�����A��%�%�g�.�.r2c�"�URUSS9$)N�backslashreplace)�errors)r�)�text�encodings  r0�decode_backslashreplacer�s���;�;�x�(:�;�;�;r2c��X:�X:-26$rCrWr}s  r0�cmpr� s��
�E�a�e��r2c��[U[5(aU$[USS5S:Xa+[U5R	SS5R	SS5$[U[275(aCURSU4;a[UR5$URS-UR-$[U[R5(a[U5R	SS5$[U5R	SS5$)	zvendored from python 3.7rYNr�ztyping.rJ�~�builtins�.)28r)�strr(�repr�replacer5rYrZr�r)�29annotation�base_modules  r0�_formatannotationr�$s����*�c�"�"����z�<��.�(�:��J��'�'�	�2�6�>�>�s�B�G�G��*�d�#�#�� � �Z��$=�=��30�/�/�0�0��$�$�s�*�Z�-D�-D�D�D�	�J����	/�	/��J��'�'��R�0�0��31��#�#�C��,�,r2rWc��SU-$)N�*rW��names r0�<lambda>r�>s��s�T�zr2c��SU-$)Nz**rWr�s r0r�r�?s��T�D�[r2c��S[U5-$)N�=)r�)�values r0r�r�@s
��c�D��K�6Gr2c��S[U5-$)Nz -> )r�)r�s r0r�r�As
��v��D�	�7Ir2c
��^^^�U=(d 0nT=(d 0mUUU4Sjn
/nU(a[U5[U5-32nOSn[U5H=unnU
"U5nU(aUU:�aUU33"UUU-345-nURU5 M? UbURU"U
"U555 OU(aURS5 U(a=UH7nU
"U5nU(aUU;aUU35"UU5-
nURU5 M9 UbURU	"U
"U555 SSRU5-S-nST;aUU"T"TS55-
nU$)aCopy formatargspec from python 3.7 standard library.36 37Python 3 has deprecated formatargspec and requested that Signature38be used instead, however this requires a full reimplementation39of formatargspec() in terms of creating Parameter objects and such.40Instead of introducing all the object-creation overhead and having41to reinvent from scratch, just copy their compatibility routine.42 43Ultimately we would need to rewrite our "decorator" routine completely44which is not really worth it right now, until all Python 2.x support45is dropped.46 47c�F>�T"U5nUT;aUST"TU5--
nU$)Nz: rW)�arg�resultr�formatannotation�	formatargs  ���r0�formatargandannotation�5inspect_formatargspec.<locals>.formatargandannotationUs3����3����+���d�-�k�#�.>�?�?�?�F��
r2�����r��(z, �)�return)�len�	enumerate�append�join)rPrRrSrTrUrVrr��
formatvarargs�formatvarkw�formatvalue�
formatreturnsr�r��specs�firstdefault�ir��spec�	kwonlyargr�s      ``    `        r0�inspect_formatargspecr�5sW���:$�)�r�N��#��K��
�E���4�y�3�x�=�0�����D�/���3�%�c�*����\�)��+�h�q�<�/?�&@�A�A�D�
���T��	"���
���]�#9�'�#B�C�D���L�L����#�I�)�)�4�D��)�~�"=���N�9�$=�>�>���L�L���	$�
��
���[�!7��!>�?�@�
�4�9�9�U�#�
#�c�
)�F��;���-� 0��X�1F� G�H�H���Mr2c�h�[R"U5(a[R"U5$/$)z�Return a sequence of all dataclasses.Field objects associated48with a class as an already processed dataclass.49 50The class must **already be a dataclass** for Field objects to be returned.51 52)�dataclasses�is_dataclass�fields)�clss r0�dataclass_fieldsr�}s+������$�$��!�!�#�&�&��	r2c��[R"U5(ae[5nURHnUR	[U55 M [R"U5Vs/sHo3U;dM53UPM sn$/$s snf)z�Return a sequence of all dataclasses.Field objects associated with54an already processed dataclass, excluding those that originate from a55superclass.56 57The class must **already be a dataclass** for Field objects to be returned.58 59)r�r��set�	__bases__r|r�r�)r��super_fields�sup�fs    r0�local_dataclass_fieldsr��sp������$�$�47�E���=�=�C���� 0�� 5�6�!�&�-�-�c�2�L�2�a�|�6K��2�L�L��	��Ms�+	B�8B)r,rr-r$r�rG)r,rr�rG)rlzCallable[..., Any]r�rM)r�r)r~r*rr*r�r*)r�r�r��bytes)r�r�r�r�)r�r�r�r�r�r�rC)rPrOrRrQrSrQrTzOptional[Sequence[Any]]rUzOptional[Sequence[str]]rVzOptional[Mapping[str, Any]]rrGr��Callable[[str], str]r�r�r�r�r��Callable[[Any], str]r�r�r�r�r�r�)r�z	Type[Any]r�z Iterable[dataclasses.Field[Any]])_�__doc__�60__future__rr�r�rurD�operator�platform�sys�	sysconfigr�rrrrrr	r61rrr
rrr�version_info�py314b1�py314�py313�py312�py311�py310�py39�py38�python_implementation�pypy�cpython�bool�get_config_var�
freethreading�62startswith�win32�osx�machine�lower�arm�maxsize�is64bit�has_refcount_gc�63attrgetter�dottedgetterr!�
annotationlibr#r$r1r5rH�__get__r6r8r=rA�64NamedTuplerMrqrwr��	importlibryr��or_r��anextr��objectr��collections.abcr�r�rr�r�r�r�r�r�r�r�r��	threading�RLock�mini_gil�65contextlib�nullcontextrWr2r0�<module>rsk��8�"�
������66��
���������������67�68�3�693�����G�#�����G�#�����G�#�����G�#�����G�#��70���6�!��71���6�!���%�%�'�6�1��72�73(�74(�75*�i�767���Y�-�-�.?�@�A�
�������&��	�l�l���h�'��
��!�!�#�)�)�+�+��77
�+�+��78���w�-���"�"����4�(��	�5�$��!�M�M�*;�<�D�D���$�
��#��	��BH��,�792�&#�&�#�#�#�#�L�2�80�81���4�8��82���4����J��	�
�F��H�M�-�-:�
� !��/�/�<��-�&"��(,�*,�24�%'�&)�*A�(@�(G�*I�->�E�83�E�
�E��E�&�	E�84(�E�0�
E�#�E�$�E�(�E�&�E�&�E�(�E�+�E�	�E�P��$����� �H�E���%�%�'�Hr2
codekingpro/portable-devtools · Team Ai