/third_party/python/Lib/ |
D | _py_abc.py | 54 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 …]
|
D | abc.py | 110 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.c | 521 _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.h | 59 _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/ |
D | abc.rst | 70 .. 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 …]
|
D | http.client.rst | 73 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 …]
|
D | asyncio-exceptions.rst | 33 :exc:`CancelledError` is now a subclass of :class:`BaseException`. 49 A subclass of :exc:`RuntimeError`. 58 This exception is a subclass of :exc:`EOFError`.
|
D | urllib.error.rst | 22 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
|
D | email.mime.rst | 67 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
|
D | exceptions.rst | 78 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/ |
D | test_syntax.py | 1282 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/ |
D | classImplementsMergedClassInterface.errors.txt | 1 …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?
|
D | classImplementsClass7.errors.txt | 1 …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?
|
D | jsdocImplements_properties.errors.txt | 1 …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?
|
D | classImplementsClass2.errors.txt | 1 …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?
|
D | classImplementsClass4.errors.txt | 1 …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?
|
D | classImplementsClass5.errors.txt | 1 …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/ |
D | deprecated-userland-subclass.js | 9 class subclass extends deprecated { class 15 const instance = new subclass(); 17 assert(instance instanceof subclass);
|
/third_party/protobuf/objectivec/ |
D | GPBWrappers.pbobjc.m | 62 // 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/ |
D | unique_widget.dart | 11 /// 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/ |
D | basesink | 71 /* 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 */
|
D | basesrc | 61 /* 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/ |
D | typeobject.c.h | 43 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/ |
D | mxful.c | 481 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/ |
D | RISCVInstrFormatsC.td | 48 // 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
|