Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created May 12, 2020 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/f87d808fe4288cd6a6e443e1b9de4bef to your computer and use it in GitHub Desktop.
Save grahamc/f87d808fe4288cd6a6e443e1b9de4bef to your computer and use it in GitHub Desktop.
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