Home
last modified time | relevance | path

Searched refs:__mro__ (Results 1 – 25 of 32) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_genericclass.py33 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))
Dtest_descr.py883 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 …]
Dtest_types.py1237 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))
Dtest_abc.py427 __mro__ = 42 # __mro__ is not tuple variable in test_factory.TestABC.test_issubclass_bad_arguments.C
Dtest_typing.py1748 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/
Dast_dump.py19 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/
Dcopyreg.py64 for base in cls.__mro__:
132 for c in cls.__mro__:
Dfunctools.py739 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__
Denum.py257 for base in chain.__mro__:
572 for base in chain.__mro__:
594 for base in chain.__mro__:
Dtyping.py1393 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__):
Dinspect.py608 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__:
Drandom.py228 for c in cls.__mro__:
D_collections_abc.py79 mro = C.__mro__
Ddataclasses.py909 for b in cls.__mro__[-1:0:-1]:
Dpydoc.py145 for base in cls.__mro__:
/third_party/python/Lib/email/
Dcontentmanager.py41 for typ in type(obj).__mro__:
/third_party/python/Doc/library/
Dabc.rst137 if any("__iter__" in B.__dict__ for B in C.__mro__):
152 via the :attr:`~class.__mro__` list) is considered a ``MyIterable`` too.
Demail.contentmanager.rst65 the types in the :term:`MRO` (``typ.__mro__``). Finally, if no other key
Dfunctions.rst1707 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/
Drepresenter.py46 data_types = type(data).__mro__
/third_party/python/Lib/unittest/
Dmock.py167 for base in (obj,) + obj.__mro__:
1029 klass = _type.__mro__[1]
2768 for klass in spec.__mro__:
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py399 return type(obj).__mro__[1]
/third_party/python/Lib/xmlrpc/
Dclient.py530 for type_ in type(value).__mro__:
/third_party/python/Doc/c-api/
Dobject.rst223 i.e. contained in ``cls.__mro__``.
/third_party/python/Doc/faq/
Dprogramming.rst1476 >>> type(c).__mro__
1480 >>> Mapping in type(c).__mro__
1568 order` (MRO) with ``type(self).__mro__``, and return the next in line after

12