MCPcopy Create free account
hub / github.com/FonaTech/Clouds-Coder / _generate_init

Method _generate_init

split_coder.py:1074–1077  ·  view source on GitHub ↗

Generate a minimal __init__.py.

(self, module_path: str)

Source from the content-addressed store, hash-verified

1072 return []
1073
1074 def _generate_init(self, module_path: str) -> str:
1075 """Generate a minimal __init__.py."""
1076 pkg = module_path.replace("/__init__.py", "").replace("/", ".") or self.package_name
1077 return f"# {pkg}\n"
1078
1079 def generate_root_init(self, all_modules: List[str]) -> str:
1080 sub_modules = sorted(

Callers 1

generate_moduleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected