Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created May 12, 2020 18:39
for name, desc in data.items():
comment = desc['description'].strip().split("\n")
srcfile = desc['position']['file'].replace(str(cwd) + "/", "")
comment.append(f"source: {srcfile}:{desc['position']['line']}")
for line in comment:
print(f" # {line}")
print(f" {name}: {desc['typeName']}")
#for name, desc in data.items():
# pprint(desc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment