%PDF- %PDF-
Direktori : /lib/python3/dist-packages/jaraco/classes/__pycache__/ |
Current File : //lib/python3/dist-packages/jaraco/classes/__pycache__/meta.cpython-312.pyc |
� �2`= � �4 � d Z G d� de� Z G d� de� Zy)z# meta.py Some useful metaclasses. c � � e Zd ZdZd� Zy)�LeafClassesMetaa� A metaclass for classes that keeps track of all of them that aren't base classes. >>> Parent = LeafClassesMeta('MyParentClass', (), {}) >>> Parent in Parent._leaf_classes True >>> Child = LeafClassesMeta('MyChildClass', (Parent,), {}) >>> Child in Parent._leaf_classes True >>> Parent in Parent._leaf_classes False >>> Other = LeafClassesMeta('OtherClass', (), {}) >>> Parent in Other._leaf_classes False >>> len(Other._leaf_classes) 1 c � � t | d� st � | _ t | d� }|j | � |t |� z }y )N� _leaf_classes)�hasattr�setr �getattr�add)�cls�name�bases�attrs�leaf_classess �5/usr/lib/python3/dist-packages/jaraco/classes/meta.py�__init__zLeafClassesMeta.__init__ s>