Home
last modified time | relevance | path

Searched refs:subclass (Results 1 – 25 of 411) sorted by relevance

12345678910>>...17

/third_party/python/Lib/
D_py_abc.py54 def register(cls, subclass): argument
59 if not isinstance(subclass, type):
61 if issubclass(subclass, cls):
62 return subclass # Already a subclass
65 if issubclass(cls, subclass):
68 cls._abc_registry.add(subclass)
70 return subclass
95 subclass = instance.__class__
96 if subclass in cls._abc_cache:
99 if subtype is subclass:
[all …]
Dabc.py110 def register(cls, subclass): argument
115 return _abc_register(cls, subclass)
121 def __subclasscheck__(cls, subclass): argument
123 return _abc_subclasscheck(cls, subclass)
/third_party/python/Modules/
D_abc.c521 _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass) in _abc__abc_register_impl() argument
524 if (!PyType_Check(subclass)) { in _abc__abc_register_impl()
528 int result = PyObject_IsSubclass(subclass, self); in _abc__abc_register_impl()
530 Py_INCREF(subclass); in _abc__abc_register_impl()
531 return subclass; /* Already a subclass. */ in _abc__abc_register_impl()
538 result = PyObject_IsSubclass(self, subclass); in _abc__abc_register_impl()
551 if (_add_to_weak_set(&impl->_abc_registry, subclass) < 0) { in _abc__abc_register_impl()
564 set_collection_flag_recursive((PyTypeObject *)subclass, collection_flag); in _abc__abc_register_impl()
567 Py_INCREF(subclass); in _abc__abc_register_impl()
568 return subclass; in _abc__abc_register_impl()
[all …]
/third_party/python/Modules/clinic/
D_abc.c.h59 _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass);
66 PyObject *subclass; in _abc__abc_register() local
72 subclass = args[1]; in _abc__abc_register()
73 return_value = _abc__abc_register_impl(module, self, subclass); in _abc__abc_register()
121 PyObject *subclass);
128 PyObject *subclass; in _abc__abc_subclasscheck() local
134 subclass = args[1]; in _abc__abc_subclasscheck()
135 return_value = _abc__abc_subclasscheck_impl(module, self, subclass); in _abc__abc_subclasscheck()
/third_party/python/Doc/library/
Dabc.rst70 .. method:: register(subclass)
72 Register *subclass* as a "virtual subclass" of this ABC. For
86 Returns the registered subclass, to allow usage as a class decorator.
94 .. method:: __subclasshook__(subclass)
98 Check whether *subclass* is considered a subclass of this ABC. This means
101 subclass of the ABC. (This class method is called from the
105 it returns ``True``, the *subclass* is considered a subclass of this ABC.
106 If it returns ``False``, the *subclass* is not considered a subclass of
108 ``NotImplemented``, the subclass check is continued with the usual
154 Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``,
[all …]
Dhttp.client.rst73 A subclass of :class:`HTTPConnection` that uses SSL for communication with
153 The base class of the other exceptions in this module. It is a subclass of
159 A subclass of :exc:`HTTPException`.
164 A subclass of :exc:`HTTPException`, raised if a port is given and is either
170 A subclass of :exc:`HTTPException`.
175 A subclass of :exc:`HTTPException`.
180 A subclass of :exc:`HTTPException`.
185 A subclass of :exc:`HTTPException`.
190 A subclass of :exc:`HTTPException`.
195 A subclass of :exc:`ImproperConnectionState`.
[all …]
Dasyncio-exceptions.rst33 :exc:`CancelledError` is now a subclass of :class:`BaseException`.
49 A subclass of :exc:`RuntimeError`.
58 This exception is a subclass of :exc:`EOFError`.
Durllib.error.rst22 a problem. It is a subclass of :exc:`OSError`.
30 :exc:`URLError` has been made a subclass of :exc:`OSError` instead
36 Though being an exception (a subclass of :exc:`URLError`), an
Demail.mime.rst67 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
82 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
115 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
146 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
180 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
213 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
216 of class :class:`~email.message.Message` (or a subclass thereof), otherwise
233 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
Dexceptions.rst78 It's recommended to only subclass one exception type at a time to avoid
86 which makes it impossible to create a subclass that inherits from
219 A subclass of :exc:`ImportError` which is raised by :keyword:`import`
287 method undefined or, if a subclass, set it to :data:`None`.
310 The constructor often actually returns a subclass of :exc:`OSError`, as
311 described in `OS exceptions`_ below. The particular subclass depends on
353 constructor may return a subclass.
485 subclass of :exc:`SyntaxError`.
491 This is a subclass of :exc:`IndentationError`.
551 no value has been bound to that variable. This is a subclass of
[all …]
/third_party/python/Lib/test/
Dtest_syntax.py1282 filename="<testcase>", mode="exec", subclass=None, argument
1293 if subclass and not isinstance(err, subclass):
1294 self.fail("SyntaxError is not a %s" % subclass.__name__)
1423 subclass=IndentationError)
1427 subclass=IndentationError)
1432 subclass=IndentationError)
/third_party/typescript/tests/baselines/reference/
DclassImplementsMergedClassInterface.errors.txt1 …correctly implements class 'C1'. Did you mean to extend 'C1' and inherit its members as a subclass?
3 …correctly implements class 'C1'. Did you mean to extend 'C1' and inherit its members as a subclass?
5 …correctly implements class 'C1'. Did you mean to extend 'C1' and inherit its members as a subclass?
20 …correctly implements class 'C1'. Did you mean to extend 'C1' and inherit its members as a subclass?
26 …correctly implements class 'C1'. Did you mean to extend 'C1' and inherit its members as a subclass?
34 …correctly implements class 'C1'. Did you mean to extend 'C1' and inherit its members as a subclass?
DclassImplementsClass7.errors.txt1 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
12 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
DjsdocImplements_properties.errors.txt1 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
10 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
DclassImplementsClass2.errors.txt1 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
10 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
DclassImplementsClass4.errors.txt1 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
13 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
DclassImplementsClass5.errors.txt1 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
16 …incorrectly implements class 'A'. Did you mean to extend 'A' and inherit its members as a subclass?
/third_party/node/test/fixtures/
Ddeprecated-userland-subclass.js9 class subclass extends deprecated { class
15 const instance = new subclass();
17 assert(instance instanceof subclass);
/third_party/protobuf/objectivec/
DGPBWrappers.pbobjc.m62 // in +initialize for each subclass.
107 // in +initialize for each subclass.
152 // in +initialize for each subclass.
197 // in +initialize for each subclass.
242 // in +initialize for each subclass.
287 // in +initialize for each subclass.
331 // in +initialize for each subclass.
376 // in +initialize for each subclass.
421 // in +initialize for each subclass.
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dunique_widget.dart11 /// subclass from its [Type] object, e.g. by calling `super(key: new
12 /// GlobalObjectKey(MyWidget))` where `MyWidget` is the name of the subclass.
18 /// When subclassing [UniqueWidget], provide the corresponding [State] subclass
/third_party/gstreamer/gstplugins_bad/tools/element-templates/
Dbasesink71 /* notify subclass of new caps */
172 /* notify subclass of query */
183 /* notify subclass of event */
205 /* notify subclass of buffer or list before doing sync */
226 /* notify subclass of preroll buffer or real buffer */
Dbasesrc61 /* get caps from subclass */
94 /* notify the subclass of new caps */
240 /* ask the subclass to create a buffer with offset and size, the default
253 /* ask the subclass to allocate an output buffer. The default implementation
266 /* ask the subclass to fill the buffer with data from offset and size */
/third_party/python/Objects/clinic/
Dtypeobject.c.h43 type___subclasscheck___impl(PyTypeObject *self, PyObject *subclass);
46 type___subclasscheck__(PyTypeObject *self, PyObject *subclass) in type___subclasscheck__() argument
51 _return_value = type___subclasscheck___impl(self, subclass); in type___subclasscheck__()
/third_party/gstreamer/gstplugins_bad/gst/mxf/
Dmxful.c481 mxf_ul_is_subclass (const MXFUL * class, const MXFUL * subclass) in mxf_ul_is_subclass() argument
486 g_return_val_if_fail (subclass != NULL, FALSE); in mxf_ul_is_subclass()
493 if (class->u[i] != 0x00 && class->u[i] != subclass->u[i]) in mxf_ul_is_subclass()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVInstrFormatsC.td48 // The immediate value encoding differs for each instruction, so each subclass
64 // The immediate value encoding differs for each instruction, so each subclass
90 // The immediate value encoding differs for each instruction, so each subclass
105 // The immediate value encoding differs for each instruction, so each subclass

12345678910>>...17