Home
last modified time | relevance | path

Searched refs:metaclass (Results 1 – 25 of 93) sorted by relevance

1234

/third_party/python/Lib/test/
Dtest_abc.py25 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 …]
Dtest_subclassinit.py128 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):
Dtest_super.py157 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):
Dtest_descr.py476 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 …]
Dtest_genericclass.py127 class D(c, metaclass=Meta):
253 class C(metaclass=Meta):
262 class C(metaclass=Meta):
Dann_module.py47 class S(metaclass = Meta):
/third_party/grpc/src/python/grpcio/grpc/aio/
D_base_call.py32 class RpcContext(metaclass=ABCMeta):
85 class Call(RpcContext, metaclass=ABCMeta):
136 metaclass=ABCMeta):
150 metaclass=ABCMeta):
177 metaclass=ABCMeta):
206 metaclass=ABCMeta):
D_interceptor.py37 class ServerInterceptor(metaclass=ABCMeta):
91 class ClientInterceptor(metaclass=ABCMeta):
95 class UnaryUnaryClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
128 class UnaryStreamClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
165 class StreamUnaryClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
206 class StreamStreamClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_base_call.py32 class RpcContext(metaclass=ABCMeta):
85 class Call(RpcContext, metaclass=ABCMeta):
136 metaclass=ABCMeta):
150 metaclass=ABCMeta):
177 metaclass=ABCMeta):
206 metaclass=ABCMeta):
D_interceptor.py37 class ServerInterceptor(metaclass=ABCMeta):
91 class ClientInterceptor(metaclass=ABCMeta):
95 class UnaryUnaryClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
128 class UnaryStreamClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
165 class StreamUnaryClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
206 class StreamStreamClientInterceptor(ClientInterceptor, metaclass=ABCMeta):
/third_party/python/Lib/test/test_importlib/
Dabc.py4 class FinderTests(metaclass=abc.ABCMeta):
41 class LoaderTests(metaclass=abc.ABCMeta):
/third_party/python/Doc/library/
Dabc.rst27 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
Dtypes.rst27 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/
Dabc.py32 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.py7 class Loader(metaclass=abc.ABCMeta):
/third_party/python/Lib/ctypes/
D_endian.py46 class BigEndianStructure(Structure, metaclass=_swapped_meta):
55 class LittleEndianStructure(Structure, metaclass=_swapped_meta):
/third_party/python/Tools/demo/
Deiffel.py107 def _test(self, metaclass): argument
108 class Eiffel(metaclass=metaclass):
DREADME5 eiffel.py Python advanced magic: A metaclass for Eiffel post/preconditions.
/third_party/node/tools/inspector_protocol/jinja2/
D_compat.py90 class metaclass(type): class
93 return type.__new__(metaclass, 'temporary_class', (), {})
/third_party/skia/third_party/externals/jinja2/
D_compat.py97 class metaclass(type): class
101 return type.__new__(metaclass, "temporary_class", (), {})
/third_party/jinja2/
D_compat.py97 class metaclass(type): class
101 return type.__new__(metaclass, "temporary_class", (), {})
/third_party/python/Lib/
D_collections_abc.py90 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):
Dio.py87 class IOBase(_io._IOBase, metaclass=abc.ABCMeta):
/third_party/python/Lib/test/leakers/
Dtest_selftype.py9 class U(type, metaclass=T):
/third_party/protobuf/python/google/protobuf/internal/
D_parameterized.py443 metaclass = type(
447 return metaclass(

1234