Home
last modified time | relevance | path

Searched refs:__subclasscheck__ (Results 1 – 19 of 19) sorted by relevance

/third_party/python/Lib/test/
Dtest_typechecks.py10 return any(cls.__subclasscheck__(c)
13 def __subclasscheck__(cls, sub): member in ABC
30 self.assertEqual(Integer.__subclasscheck__(int), True)
31 self.assertEqual(Integer.__subclasscheck__(float), False)
Dtest_exceptions.py1173 def __subclasscheck__(cls, subclass): member in ExceptionTests.test_badisinstance.Meta
Dtest_types.py725 def __subclasscheck__(cls, sub): member in UnionTests.test_bad_subclasscheck.BadMeta
/third_party/python/Lib/
D_py_abc.py105 return cls.__subclasscheck__(subclass)
106 return any(cls.__subclasscheck__(c) for c in (subclass, subtype))
108 def __subclasscheck__(cls, subclass): member in ABCMeta
Dabc.py121 def __subclasscheck__(cls, subclass): member in ABCMeta
Dtyping.py397 def __subclasscheck__(self, cls): member in _SpecialForm
980 return self.__subclasscheck__(type(obj))
982 def __subclasscheck__(self, cls): member in _BaseGenericAlias
1137 def __subclasscheck__(self, cls): member in _SpecialGenericAlias
1142 return super().__subclasscheck__(cls)
1243 return self.__subclasscheck__(type(obj))
1245 def __subclasscheck__(self, cls): member in _UnionGenericAlias
2361 def __subclasscheck__(cls, other): member in _TypedDictMeta
2365 __instancecheck__ = __subclasscheck__
/third_party/boost/tools/build/src/build/
Dproperty.py78 def __subclasscheck__(self, subclass): member in PropertyMeta
/third_party/python/Modules/
D_abc.c21 _Py_IDENTIFIER(__subclasscheck__);
/third_party/python/Doc/c-api/
Dtype.rst77 :meth:`~class.__subclasscheck__` is not called on *b*. Call
Dobject.rst220 If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to
/third_party/python/Misc/NEWS.d/
D3.7.0b3.rst298 Fix C implementation of ``ABC.__subclasscheck__(cls, subclass)`` crashed when
D3.10.0rc1.rst154 Fix ``__instancecheck__`` and ``__subclasscheck__`` for the union type.
D3.8.0a1.rst5549 Fix C implementation of ``ABC.__subclasscheck__(cls, subclass)`` crashed
/third_party/python/Doc/library/
Dabc.rst102 :meth:`__subclasscheck__` method of the ABC.)
Dunittest.mock.rst2045 * ``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``
/third_party/python/Tools/c-analyzer/
DTODO259 Modules/_abc.c:PyId___subclasscheck__ _Py_IDENTIFIER(__subclasscheck__)
335 Objects/abstract.c:PyObject_IsSubclass():PyId___subclasscheck__ _Py_IDENTIFIER(__subclasscheck__)
/third_party/python/Objects/
Dabstract.c2725 _Py_IDENTIFIER(__subclasscheck__); in object_issubclass()
/third_party/python/Doc/reference/
Ddatamodel.rst2175 .. method:: class.__subclasscheck__(self, subclass)
2192 :meth:`~class.__subclasscheck__`, with motivation for this functionality
/third_party/python/Misc/
DHISTORY16306 match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
16309 __instancecheck__ / __subclasscheck__ on the tuple rather than on each