/third_party/python/Lib/test/ |
D | test_genericclass.py | 33 self.assertEqual(D.__mro__, (D, A, C, B, object)) 53 self.assertEqual(D.__mro__, (D, A, B, object)) 58 self.assertEqual(E.__mro__, (E, object)) 73 self.assertEqual(D.__mro__, (D, A, dict, object)) 87 self.assertEqual(D.__mro__, (D, C, dict, object)) 135 self.assertEqual(D.__mro__, (D, A, object)) 282 self.assertEqual(C.__mro__, (C, int, object))
|
D | test_descr.py | 883 self.assertEqual(D.__mro__, (D, dict, C, object)) 916 self.assertEqual(D.__mro__, (D, B, C, A, object)) 920 self.assertEqual(E.__mro__, (E, C, B, A, object)) 944 self.assertEqual(Z.__mro__, (Z, X, B, Y, A, C, object)) 959 self.assertEqual(PedalWheelBoat.__mro__, 961 self.assertEqual(SmallCatamaran.__mro__, 963 self.assertEqual(Pedalo.__mro__, 978 self.assertEqual(EditableScrollablePane.__mro__, 1857 self.assertEqual(A.__mro__, (A, object)) 1859 self.assertEqual(B.__mro__, (B, A, object)) [all …]
|
D | test_types.py | 1237 self.assertEqual(D.__mro__, (D, A, object)) 1243 self.assertEqual(L1.__mro__, (L1, list, typing.Generic, object)) 1248 self.assertEqual(L2.__mro__, (L2, list, object)) 1260 self.assertEqual(D.__mro__, (D, A, B, object))
|
D | test_abc.py | 427 __mro__ = 42 # __mro__ is not tuple variable in test_factory.TestABC.test_issubclass_bad_arguments.C
|
D | test_typing.py | 1748 repr(C.__mro__) 2074 for base in obj.__mro__: 2271 self.assertEqual(C.__mro__, (C, list, B, Generic, object)) 4580 self.assertEqual(X.__mro__, (X, int, object),
|
/third_party/python/Tools/peg_generator/pegen/ |
D | ast_dump.py | 19 if any(cls.__name__ == "AST" for cls in node.__class__.__mro__): 59 if all(cls.__name__ != "AST" for cls in node.__class__.__mro__):
|
/third_party/python/Lib/ |
D | copyreg.py | 64 for base in cls.__mro__: 132 for c in cls.__mro__:
|
D | functools.py | 739 bases = set(cls.__mro__) 750 if typ != other and typ in other.__mro__: 762 found.append([s for s in sub.__mro__ if s in type_set]) 790 if (t in registry and t not in cls.__mro__ 791 and match not in cls.__mro__
|
D | enum.py | 257 for base in chain.__mro__: 572 for base in chain.__mro__: 594 for base in chain.__mro__:
|
D | typing.py | 1393 for base in cls.__mro__[:-1]: # without object 1425 for base in cls.__mro__: 1556 for base in other.__mro__: 1789 for base in reversed(obj.__mro__):
|
D | inspect.py | 608 return cls.__mro__ 665 for base in obj.__mro__: 716 for base in cls.__mro__: 2500 for base in obj.__mro__[:-1]: 2521 if type not in obj.__mro__:
|
D | random.py | 228 for c in cls.__mro__:
|
D | _collections_abc.py | 79 mro = C.__mro__
|
D | dataclasses.py | 909 for b in cls.__mro__[-1:0:-1]:
|
D | pydoc.py | 145 for base in cls.__mro__:
|
/third_party/python/Lib/email/ |
D | contentmanager.py | 41 for typ in type(obj).__mro__:
|
/third_party/python/Doc/library/ |
D | abc.rst | 137 if any("__iter__" in B.__dict__ for B in C.__mro__): 152 via the :attr:`~class.__mro__` list) is considered a ``MyIterable`` too.
|
D | email.contentmanager.rst | 65 the types in the :term:`MRO` (``typ.__mro__``). Finally, if no other key
|
D | functions.rst | 1707 For example, if :attr:`~class.__mro__` of *object-or-type* is 1711 The :attr:`~class.__mro__` attribute of the *object-or-type* lists the method
|
/third_party/PyYAML/lib/yaml/ |
D | representer.py | 46 data_types = type(data).__mro__
|
/third_party/python/Lib/unittest/ |
D | mock.py | 167 for base in (obj,) + obj.__mro__: 1029 klass = _type.__mro__[1] 2768 for klass in spec.__mro__:
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testmagicmethods.py | 399 return type(obj).__mro__[1]
|
/third_party/python/Lib/xmlrpc/ |
D | client.py | 530 for type_ in type(value).__mro__:
|
/third_party/python/Doc/c-api/ |
D | object.rst | 223 i.e. contained in ``cls.__mro__``.
|
/third_party/python/Doc/faq/ |
D | programming.rst | 1476 >>> type(c).__mro__ 1480 >>> Mapping in type(c).__mro__ 1568 order` (MRO) with ``type(self).__mro__``, and return the next in line after
|