MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_class_members

Function get_class_members

Lib/rlcompleter.py:204–209  ·  view source on GitHub ↗
(klass)

Source from the content-addressed store, hash-verified

202 return matches
203
204def get_class_members(klass):
205 ret = dir(klass)
206 if hasattr(klass,'__bases__'):
207 for base in klass.__bases__:
208 ret = ret + get_class_members(base)
209 return ret
210
211try:
212 import readline

Callers 1

attr_matchesMethod · 0.85

Calls 2

dirFunction · 0.85
hasattrFunction · 0.85

Tested by

no test coverage detected