/third_party/python/Lib/test/ |
D | test_abc.py | 25 class C(metaclass=abc_ABCMeta): 43 class C(metaclass=abc_ABCMeta): 61 class C(metaclass=abc_ABCMeta): 102 class C(metaclass=abc_ABCMeta): 121 class C(metaclass=abc_ABCMeta): 141 class C(metaclass=abc_ABCMeta): 153 class C(metaclass=abc_ABCMeta): 161 class C(metaclass=abc_ABCMeta): 175 class C(metaclass=abc_ABCMeta): 200 class C(metaclass=abc_ABCMeta): [all …]
|
D | test_subclassinit.py | 128 class A(metaclass=Meta): 192 class B(A, metaclass=Meta): 221 class MyClass(metaclass=MyMeta, otherarg=1): 226 dict(metaclass=MyMeta, otherarg=1)) 228 dict(metaclass=MyMeta, otherarg=1)) 235 class MyClass(metaclass=MyMeta, otherarg=1): 246 class MyClass(metaclass=MyMeta, otherarg=1): 259 class MyClass(metaclass=MyMeta): 268 class MyClass(metaclass=MyMeta, otherarg=1):
|
D | test_super.py | 157 class A(metaclass=Meta): 174 class A(metaclass=Meta): 194 class A(metaclass=Meta): 212 class WithoutClassRef(metaclass=Meta): 220 class WithClassRef(metaclass=Meta): 242 class WithoutClassRef(metaclass=Meta): 251 class WithClassRef(metaclass=Meta): 266 class A(metaclass=Meta, cell=bad_cell): 279 class A(metaclass=Meta):
|
D | test_descr.py | 476 class C(metaclass=type): 489 class D(metaclass=_metaclass): 498 class C(metaclass=M1): 522 class C(metaclass=M2): 536 def __new__(metaclass, name, bases, dict): argument 537 cls = super(autosuper, metaclass).__new__(metaclass, 548 class A(metaclass=autosuper): 569 def __new__(metaclass, name, bases, dict): argument 584 return super(autoproperty, metaclass).__new__(metaclass, 586 class A(metaclass=autoproperty): [all …]
|
D | test_genericclass.py | 127 class D(c, metaclass=Meta): 253 class C(metaclass=Meta): 262 class C(metaclass=Meta):
|
D | ann_module.py | 47 class S(metaclass = Meta):
|
D | test_dynamicclassattribute.py | 85 class ClassWithAbstractVirtualProperty(metaclass=abc.ABCMeta): 91 class ClassWithPropertyAbstractVirtual(metaclass=abc.ABCMeta):
|
D | test_inspect.py | 265 class AbstractClassExample(metaclass=ABCMeta): 287 class AbstractChecker(metaclass=ABCMeta): 553 class C(metaclass=CM): 1151 class VA(metaclass=Meta): 1180 class Class(metaclass=Meta): 1193 class Class(metaclass=Meta): 1221 class Class1(metaclass=Meta1): 1223 class Class2(Class1, metaclass=Meta3): 1237 class C(metaclass=M): 1291 class A(metaclass=M): [all …]
|
/third_party/python/Doc/library/ |
D | abc.rst | 27 This module provides the metaclass :class:`ABCMeta` for defining ABCs and 32 A helper class that has :class:`ABCMeta` as its metaclass. With this class, 34 avoiding sometimes confusing metaclass usage, for example:: 43 metaclass usage, as multiple inheritance may lead to metaclass conflicts. 44 One may also define an abstract base class by passing the metaclass 49 class MyABC(metaclass=ABCMeta): 59 Use this metaclass to create an ABC. An ABC can be subclassed directly, and 68 Classes created with a metaclass of :class:`ABCMeta` have the following method: 169 Using this decorator requires that the class's metaclass is :class:`ABCMeta` 170 or is derived from it. A class that has a metaclass derived from
|
D | types.rst | 27 Creates a class object dynamically using the appropriate metaclass. 31 keyword arguments (such as ``metaclass``). 43 Calculates the appropriate metaclass and creates the class namespace. 47 (such as ``metaclass``). 49 The return value is a 3-tuple: ``metaclass, namespace, kwds`` 51 *metaclass* is the appropriate metaclass, *namespace* is the 53 in *kwds* argument with any ``'metaclass'`` entry removed. If no *kwds* 62 used when the metaclass does not have a ``__prepare__`` method.
|
/third_party/python/Lib/importlib/ |
D | abc.py | 32 class Finder(metaclass=abc.ABCMeta): 64 class MetaPathFinder(metaclass=abc.ABCMeta): 101 class PathEntryFinder(metaclass=abc.ABCMeta): 312 class ResourceReader(metaclass=abc.ABCMeta):
|
D | _abc.py | 7 class Loader(metaclass=abc.ABCMeta):
|
/third_party/python/Lib/test/test_importlib/ |
D | abc.py | 4 class FinderTests(metaclass=abc.ABCMeta): 41 class LoaderTests(metaclass=abc.ABCMeta):
|
/third_party/python/Lib/ctypes/ |
D | _endian.py | 46 class BigEndianStructure(Structure, metaclass=_swapped_meta): 55 class LittleEndianStructure(Structure, metaclass=_swapped_meta):
|
/third_party/python/Tools/demo/ |
D | eiffel.py | 107 def _test(self, metaclass): argument 108 class Eiffel(metaclass=metaclass):
|
D | README | 5 eiffel.py Python advanced magic: A metaclass for Eiffel post/preconditions.
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | _compat.py | 90 class metaclass(type): class 93 return type.__new__(metaclass, 'temporary_class', (), {})
|
/third_party/python/Lib/ |
D | _collections_abc.py | 90 class Hashable(metaclass=ABCMeta): 105 class Awaitable(metaclass=ABCMeta): 166 class AsyncIterable(metaclass=ABCMeta): 253 class Iterable(metaclass=ABCMeta): 373 class Sized(metaclass=ABCMeta): 388 class Container(metaclass=ABCMeta): 550 class Callable(metaclass=ABCMeta):
|
D | io.py | 87 class IOBase(_io._IOBase, metaclass=abc.ABCMeta):
|
D | abc.py | 184 class ABC(metaclass=ABCMeta):
|
/third_party/node/deps/v8/third_party/jinja2/ |
D | _compat.py | 97 class metaclass(type): class 101 return type.__new__(metaclass, "temporary_class", (), {})
|
/third_party/jinja2/ |
D | _compat.py | 97 class metaclass(type): class 101 return type.__new__(metaclass, "temporary_class", (), {})
|
/third_party/skia/third_party/externals/jinja2/ |
D | _compat.py | 97 class metaclass(type): class 101 return type.__new__(metaclass, "temporary_class", (), {})
|
/third_party/python/Lib/test/leakers/ |
D | test_selftype.py | 9 class U(type, metaclass=T):
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | _parameterized.py | 443 metaclass = type( 447 return metaclass(
|