Skip to content

Commit 3694311

Browse files
committed
Codegen: insert doc explaining _patch_class_qldoc
1 parent f5633be commit 3694311

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

misc/codegen/generators/qlgen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ def _get_stub(cls: schema.Class, base_import: str, generated_import_prefix: str)
323323

324324

325325
def _patch_class_qldoc(cls: str, qldoc: str, stub_file: pathlib.Path):
326+
""" Replace or insert `qldoc` as the QLdoc of class `cls` in `stub_file` """
326327
if not qldoc or not stub_file.exists():
327328
return
328329
qldoc = "\n".join(l.rstrip() for l in qldoc.splitlines())

0 commit comments

Comments
 (0)