%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/jaraco/classes/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/jaraco/classes/__pycache__/ancestry.cpython-312.pyc

�

�2`���,�dZddlmZd�Zd�Zd�Zd�Zy)zM
Routines for obtaining the class names
of an object and its parent classes.
�)�unique_everseenc�(�|j�ddS)zt
    return a tuple of all base classes the class c has as a parent.
    >>> object in all_bases(list)
    True
    �N��mro��cs �9/usr/lib/python3/dist-packages/jaraco/classes/ancestry.py�	all_basesr	s��
�5�5�7�1�2�;��c�"�|j�S)ze
    return a tuple of all classes to which c belongs
    >>> list in all_classes(list)
    True
    rrs r
�all_classesrs��
�5�5�7�Nrc�*�tt|��S)a:
    Generator over all subclasses of a given class, in depth-first order.

    >>> bool in list(iter_subclasses(int))
    True
    >>> class A(object): pass
    >>> class B(A): pass
    >>> class C(A): pass
    >>> class D(B,C): pass
    >>> class E(D): pass
    >>>
    >>> for cls in iter_subclasses(A):
    ...     print(cls.__name__)
    B
    D
    E
    C
    >>> # get ALL classes currently defined
    >>> res = [cls.__name__ for cls in iter_subclasses(object)]
    >>> 'type' in res
    True
    >>> 'tuple' in res
    True
    >>> len(res) > 100
    True
    )r�_iter_all_subclasses)�clss r
�iter_subclassesrs��6�/��4�5�5rc#�K�	|j�}|D]}|��t|�Ed{����y#t$r|j|�}Y�;wxYw7�'�w)N)�__subclasses__�	TypeErrorr)r�subs�subs   r
rr=sc����'��!�!�#���(���	�"�3�'�'�'�(���'��!�!�#�&��'��	(�s/�A�3�A�A�A�A�
A�A�AN)�__doc__�more_itertoolsrrrrr�rr
�<module>rs#���
+���6�<(r

Zerion Mini Shell 1.0