Home
last modified time | relevance | path

Searched refs:mro (Results 1 – 25 of 64) sorted by relevance

123

/third_party/protobuf/python/
Dstubout.py72 mro = list(inspect.getmro(obj.__class__))
74 mro = list(inspect.getmro(obj))
76 mro.reverse()
80 for cls in mro:
/third_party/python/Lib/
Dfunctools.py757 mro = []
764 mro.append(typ)
770 if subcls not in mro:
771 mro.append(subcls)
772 return _c3_mro(cls, abcs=mro)
784 mro = _compose_mro(cls, registry.keys())
786 for t in mro:
Dpydoc.py877 mro = deque(inspect.getmro(object))
878 if len(mro) > 2:
881 for base in mro:
952 if mro:
953 thisclass = mro.popleft()
1334 mro = deque(inspect.getmro(object))
1335 if len(mro) > 2:
1337 for base in mro:
1415 if mro:
1416 thisclass = mro.popleft()
Dinspect.py448 mro = (object,) + getmro(object)
450 mro = ()
474 for base in mro:
517 mro = getmro(cls)
520 class_bases = (cls,) + mro
526 for base in mro:
Denum.py223 k for c in enum_class.mro()
758 for cls in self.__class__.mro()
D_collections_abc.py79 mro = C.__mro__
81 for B in mro:
/third_party/python/Objects/
Dtypeobject.c80 _Py_IDENTIFIER(mro);
1528 PyObject *mro; in PyType_IsSubtype() local
1530 mro = a->tp_mro; in PyType_IsSubtype()
1531 if (mro != NULL) { in PyType_IsSubtype()
1535 assert(PyTuple_Check(mro)); in PyType_IsSubtype()
1536 n = PyTuple_GET_SIZE(mro); in PyType_IsSubtype()
1538 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) in PyType_IsSubtype()
2005 mro_check(PyTypeObject *type, PyObject *mro) in mro_check() argument
2012 n = PyTuple_GET_SIZE(mro); in mro_check()
2017 tmp = PyTuple_GET_ITEM(mro, i); in mro_check()
[all …]
/third_party/python/Modules/
D_abc.c753 PyObject *mro = ((PyTypeObject *)subclass)->tp_mro; in _abc__abc_subclasscheck_impl() local
754 assert(PyTuple_Check(mro)); in _abc__abc_subclasscheck_impl()
755 for (pos = 0; pos < PyTuple_GET_SIZE(mro); pos++) { in _abc__abc_subclasscheck_impl()
756 PyObject *mro_item = PyTuple_GET_ITEM(mro, pos); in _abc__abc_subclasscheck_impl()
Dgc_weakref.txt18 often by setting a class's mro pointer to NULL, after which attribute
/third_party/python/Lib/test/
Dtest_descr.py1856 self.assertEqual(A.mro(), [A, object])
1858 self.assertEqual(B.mro(), [B, A, object])
1860 self.assertEqual(C.mro(), [C, A, object])
1862 self.assertEqual(D.mro(), [D, B, C, A, object])
1867 def mro(cls): member in ClassPropertiesAndMethods.test_altmro.PerverseMetaType
1868 L = type.mro(cls)
1878 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1897 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
1908 def mro(self): member in ClassPropertiesAndMethods.test_altmro._metaclass
4103 def mro(self): member in ClassPropertiesAndMethods.test_mutable_bases_with_failing_mro.WorkOnce
[all …]
Dtest_super.py189 def mro(self): member in TestSuper.test___class___mro.Meta
192 return super().mro()
Dtest_typechecks.py16 return any(c in candidates for c in sub.mro())
Dtest_functools.py1879 mro = functools._compose_mro
1882 m = mro(dict, haystack)
1888 m = mro(collections.ChainMap, haystack)
1899 m = mro(collections.defaultdict, [c.Sized, c.Container, str])
1911 m = mro(D, bases)
1925 m = mro(C, haystack)
2026 mro = functools._c3_mro
2042 self.assertEqual(mro(X, abcs=abcs), expected)
2045 self.assertEqual(mro(X, abcs=many_abcs), expected)
/third_party/python/Lib/email/
D_policybase.py104 for c in (c for base in cls.__bases__ for c in base.mro()):
/third_party/python/Lib/test/test_importlib/
Dtest_abc.py960 original_set_data = self.loader.__class__.mro()[1].set_data
962 del self.loader.__class__.mro()[1].set_data
966 self.loader.__class__.mro()[1].set_data = original_set_data
/third_party/skia/third_party/externals/icu/source/data/misc/
DkeyTypeData.txt340 mro{""}
/third_party/icu/icu4c/source/data/misc/
DkeyTypeData.txt340 mro{""}
/third_party/flutter/skia/third_party/externals/icu/source/data/misc/
DkeyTypeData.txt337 mro{""}
/third_party/mindspore/mindspore/_extends/parse/
Dparser.py699 for class_element in sub_class.mro():
/third_party/flutter/skia/third_party/externals/icu/source/data/lang/
Dast.txt735 Mroo{"mro"}
923 mroo{"númberos mro"}
Dfi.txt754 Mroo{"mro"}
1000 mroo{"mro-numerot"}
/third_party/icu/icu4c/source/data/lang/
Dast.txt735 Mroo{"mro"}
923 mroo{"númberos mro"}
Dfi.txt767 Mroo{"mro"}
1024 mroo{"mro-numerot"}
/third_party/skia/third_party/externals/icu/source/data/lang/
Dfi.txt767 Mroo{"mro"}
1024 mroo{"mro-numerot"}
Dast.txt735 Mroo{"mro"}
923 mroo{"númberos mro"}

123