Papr
Papr copied to clipboard
Proposal - Sourcery automatic code generation for boilerplate
Hi what do you think about Sourcery (https://github.com/krzysztofzablocki/Sourcery) It generates generates some of the duplicate/boilerplate code for you
I think that model protocols for every model have identical structure and could be removed (moved to autogenerated file) with this See this gist, https://gist.github.com/vaderdan/cfd9ef853f123143e580ec2e3664a8c1 Basicaly it scans for classes that extends Automodel and make protocols with inputs/outputs from them
https://www.caseyliss.com/2017/3/31/the-magic-of-sourcery
I like the idea! A PR is very welcomed 🎉