MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_base_classes

Function get_base_classes

doc/conf.py:293–298  ·  view source on GitHub ↗
(class_definition: str)

Source from the content-addressed store, hash-verified

291
292def collect_classes(types: set[str]) -> Iterable[tuple[str, str]]:
293 def get_base_classes(class_definition: str) -> Iterable[str]:
294 if "(" in class_definition and ")" in class_definition:
295 for base in class_definition[class_definition.index("(") + 1 : class_definition.index(")")].split(","):
296 yield base.strip()
297 else:
298 return []
299
300 for filename in sorted(glob.glob("../github/*.py")):
301 module = f"github.{filename[10:-3]}"

Callers 1

collect_classesFunction · 0.85

Calls 1

indexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…