MCPcopy Index your code
hub / github.com/python/cpython / isclass

Function isclass

Lib/inspect.py:184–186  ·  view source on GitHub ↗

Return true if the object is a class.

(object)

Source from the content-addressed store, hash-verified

182 return isinstance(object, types.ModuleType)
183
184def isclass(object):
185 """Return true if the object is a class."""
186 return isinstance(object, type)
187
188def ismethod(object):
189 """Return true if the object is an instance method."""

Callers 9

ismethoddescriptorFunction · 0.85
isdatadescriptorFunction · 0.85
_getmembersFunction · 0.85
_findclassFunction · 0.85
_finddocFunction · 0.85
getfileFunction · 0.85
findsourceFunction · 0.85
_descriptor_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…