Home
last modified time | relevance | path

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

123

/external/python/cpython3/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.py864 self.assertEqual(D.__mro__, (D, dict, C, object))
897 self.assertEqual(D.__mro__, (D, B, C, A, object))
901 self.assertEqual(E.__mro__, (E, C, B, A, object))
925 self.assertEqual(Z.__mro__, (Z, X, B, Y, A, C, object))
940 self.assertEqual(PedalWheelBoat.__mro__,
942 self.assertEqual(SmallCatamaran.__mro__,
944 self.assertEqual(Pedalo.__mro__,
959 self.assertEqual(EditableScrollablePane.__mro__,
1805 self.assertEqual(A.__mro__, (A, object))
1807 self.assertEqual(B.__mro__, (B, A, object))
[all …]
Dtest_abc.py408 __mro__ = 42 # __mro__ is not tuple variable in test_factory.TestABC.test_issubclass_bad_arguments.C
/external/python/cpython2/Lib/
Dcopy_reg.py61 for base in self.__class__.__mro__:
118 for c in cls.__mro__:
Dpkgutil.py38 mro = cls.__mro__
43 mro = cls.__mro__[1:]
D_abcoll.py26 return any(attr in B.__dict__ for B in C.__mro__)
43 for B in C.__mro__:
/external/python/cpython3/Lib/
Dcopyreg.py56 for base in self.__class__.__mro__:
119 for c in cls.__mro__:
Dfunctools.py690 bases = set(cls.__mro__)
700 if typ != other and typ in other.__mro__:
712 found.append([s for s in sub.__mro__ if s in type_set])
740 if (t in registry and t not in cls.__mro__
741 and match not in cls.__mro__
Dtyping.py962 for base in reversed(obj.__mro__):
1113 if not any(attr in d.__dict__ for d in cls.__mro__):
1120 for c in self.__mro__:
1129 for c in self.__mro__:
Dinspect.py480 return cls.__mro__
537 for base in obj.__mro__:
585 for base in cls.__mro__:
2334 for base in obj.__mro__[:-1]:
2355 if type not in obj.__mro__:
/external/tensorflow/tensorflow/tools/docs/
Ddoc_controls.py301 for parent in cls.__mro__[1:]:
/external/python/cpython2/Lib/test/
Dtest_descr.py719 self.assertEqual(D.__mro__, (D, dict, C, object))
753 self.assertEqual(E.__mro__, (E, D, B, A, C, object))
760 self.assertEqual(F.__mro__, (F, B, C, A, object))
776 self.assertEqual(M1.__mro__, (M1, C, object))
794 self.assertEqual(M2.__mro__, (M2, D, C, object))
806 self.assertEqual(M3.__mro__, (M3, M1, M2, D, C, object))
842 self.assertEqual(D.__mro__, (D, B, C, A, object))
846 self.assertEqual(E.__mro__, (E, C, B, A, object))
870 self.assertEqual(Z.__mro__, (Z, X, B, Y, A, C, object))
885 self.assertEqual(PedalWheelBoat.__mro__,
[all …]
D_mock_backport.py163 for base in (obj,) + obj.__mro__:
865 klass = _type.__mro__[1]
2216 for klass in spec.__mro__:
/external/python/cpython2/Demo/newmetaclasses/
DEnum.py54 for obj in cls.__mro__:
/external/python/cpython2/Doc/library/
Dabc.rst106 if any("__iter__" in B.__dict__ for B in C.__mro__):
121 via the :attr:`~class.__mro__` list) is considered a ``MyIterable`` too.
/external/python/cpython2/Tools/framer/framer/
Dbases.py145 for cls in self.__mro__:
/external/scapy/scapy/
Dbase_classes.py197 for cls in newcls.__mro__ if hasattr(cls, "__slots__")
/external/python/cpython3/Lib/email/
Dcontentmanager.py41 for typ in type(obj).__mro__:
/external/python/cpython3/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.
/external/python/six/
Dtest_six.py736 assert X.__mro__ == (X, Base, Base2, object)
744 assert Y.__mro__ == (Y, X, object)
/external/python/cpython3/Lib/unittest/
Dmock.py144 for base in (obj,) + obj.__mro__:
909 klass = _type.__mro__[1]
2280 for klass in spec.__mro__:
/external/python/mock/mock/
Dmock.py264 for base in (obj,) + obj.__mro__:
1017 klass = _type.__mro__[1]
2399 for klass in spec.__mro__:
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py357 return type(obj).__mro__[1]
/external/scapy/scapy/modules/
Dsix.py542 return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)
/external/python/setuptools/pkg_resources/_vendor/
Dsix.py532 return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)

123