Re: ast.parse, ast.dump, but with comment preservation?

2022-01-12 Thread samue...@gmail.com
> > PS: Library is https://github.com/SamuelMarks/cdd-python (might relicense > > with CC0… anyway too early for others to use; wait for the 0.1.0 release ;]) Ended up writing my own CST and added it to that library of mine (link above). My target is adding/removing/changing of: docstrings, funct

Re: ast.parse, ast.dump, but with comment preservation?

2022-01-12 Thread samue...@gmail.com
> --lucas > On 16/12/2021 04:37, samue...@gmail.com wrote: > > I wrote a little open-source tool to expose internal constructs in OpenAPI. > > Along the way, I added related functionality to: > > - Generate/update a function prototype to/from a class > > - JSO

ast.parse, ast.dump, but with comment preservation?

2021-12-15 Thread samue...@gmail.com
I wrote a little open-source tool to expose internal constructs in OpenAPI. Along the way, I added related functionality to: - Generate/update a function prototype to/from a class - JSON schema - Automatically add type annotations to all function arguments, class attributes, declarations, and ass