Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
imports.cpython-313.pyc48 linesDownload Raw Back to __pycache__
1�

2p�jO��`�SSKJr SSKrSSKJr SSKJr S/rSSjrS	S3Sjjr	g)�)�annotationsN)�Iterable)�Any�lazy_importc��SnXS:Xa%US-
nU[U5:dS5eXS:XaM%[XSUSU/U5n[X@5$)a24Import ``name`` from ``source`` in ``namespace``.5 6There are two use cases:7 8- ``name`` is an object defined in ``source``;9- ``name`` is a submodule of ``source``.10 11Neither :func:`__import__` nor :func:`~importlib.import_module` does12exactly this. :func:`__import__` is closer to the intended behavior.13 14r�.�z%importing from parent isn't supportedN)�len�15__import__�getattr)�name�source�	namespace�level�modules     �XD:\code\apps\devtools\python\user_packages\Python313\site-packages\websockets/imports.py�import_namerse��
�E�16�-�3�17�
��18���s�6�{�"�K�$K�K�"��-�3�19���v��	�4�$���
G�F��6� � �c�^^^^^^^�Tc0mTc0m[T5m[T5m[T5mTT-(aS5eTT-(aS5eTT-(aS5eTSmSUUUU4SjjnUTS'S	UUU4SjjnUTS'g)20aL21Provide lazy, module-level imports.22 23Typical use::24 25    __getattr__, __dir__ = lazy_import(26        globals(),27        aliases={28            "<name>": "<source module>",29            ...30        },31        deprecated_aliases={32            ...,33        }34    )35 36This function defines ``__getattr__`` and ``__dir__`` per :pep:`562`.37 38Nznamespace conflict�__name__c�>�TceTUn[XT5$![a Of=fTceTUn[R"TSUS3[SS9 [XT5$![a Of=f[ST<SU<35e)Nrz is deprecated�)�39stacklevelzmodule z has no attribute )r�KeyError�warnings�warn�DeprecationWarning�AttributeError)r
r�aliases�deprecated_aliasesr�packages  ����r�__getattr__� lazy_import.<locals>.__getattr__Gs�����"�"�"�	8��T�]�F��t�Y�7�7���	��	��40"�-�-�-�41	8�'��-�F�
�M�M��)�1�T�F�.�1�"��
�42�t�Y�7�7���	��	���w�w�k�1C�D�8�L�M�Ms��43&�&�A � 44A-�,A-r"c�&>�[TT-T-5$)N)�sorted)�aliases_set�deprecated_aliases_set�
namespace_sets���r�__dir__�lazy_import.<locals>.__dir__as����m�k�1�4J�J�K�Krr))r
�str�returnr)r,z
Iterable[str])�set)	rrr r"r)r&r'r(r!s	```  @@@@rrr s����0�����!����	�N�M��g�,�K� �!3�4���{�*�@�,@�@�*��5�5�K�7K�K�5��3�3�I�5I�I�3��45�#�G�N�N�0 +�I�m��L�L�#�I�i�r)r
r+rr+r�dict[str, Any]r,r)NN)rr.r�dict[str, str] | Noner r/r,�None)46�47__future__rr�collections.abcr�typingr�__all__rr�rr�<module>r6sU��"��$���/��!�.&*�04�D#��D#�
"�D#�.�D#�48�	D#r
codekingpro/portable-devtools · Team Ai