MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / isclass

Function isclass

tools/python-3.11.9-amd64/Lib/inspect.py:292–298  ·  view source on GitHub ↗

Return true if the object is a class. Class objects provide these attributes: __doc__ documentation string __module__ name of module in which this class was defined

(object)

Source from the content-addressed store, hash-verified

290 return isinstance(object, types.ModuleType)
291
292def isclass(object):
293 """Return true if the object is a class.
294
295 Class objects provide these attributes:
296 __doc__ documentation string
297 __module__ name of module in which this class was defined"""
298 return isinstance(object, type)
299
300def ismethod(object):
301 """Return true if the object is an instance method.

Callers 15

_make_titleMethod · 0.90
_renderMethod · 0.90
renderMethod · 0.90
is_expandableFunction · 0.90
_traverseFunction · 0.90
rich_castFunction · 0.90
ismethoddescriptorFunction · 0.85
isdatadescriptorFunction · 0.85
_getmembersFunction · 0.85
_findclassFunction · 0.85
_finddocFunction · 0.85
getfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected