lato
lato copied to clipboard
strongly typed codebase
As a follow-up to https://github.com/pgorecki/lato/issues/4 - I would kindly like to ask one more question, if I may.
@pgorecki - would you see strongly-typed codebase would be a goal for lato?
I spent gazillion hours trying to strongly-type python-ddd repo fork. Even found a bug in pyright along the way: https://github.com/python/typing/discussions/1451#discussioncomment-6781624 :). Spent this weekend trying to strongly type lato...
I think lato is wonderful. But there is little bit of black magic which I am not capable to understand just by looking at code. Strongly typed codebase would help to reason it a lot. Am sure it'd force to restructure some parts of the code, simplify it.
It's a big feature with not necessary clear benefits for you personally (as you know all the codebase by heart). But that'd surely be a nice to have for lato as a publicly used framework.
I'd love to try to contribute to it. But only if you wanted this to happen and provide some guidance. I have strongly-typed lato codebase during the weekend (with the help of chatGPT...;), it could be some starting point. I could open a PR with all the changes, or I don't know how would it be the best to approach it.
But yeah - you willing to see it happening and having to plans to guide/contribute to this happening at least a little bit are both hard requirements to even start thinking about this.
https://github.com/pyeventsourcing/eventsourcing is strongly typed codebase, would you it could be named as a goal for lato framework as well?
Thanks for any thoughts!
Hi @toinbis,
I already made some efforts into introducing type annotations to lato, but it's far from being complete. I like the idea of having strongly typed codebase, unless it will make the code more complicated and harder to maintain. Also, lato shouldn't enforce strong typing on the client code - it should seamlessly function with both typed and untyped Python.
I'm happy to hear that you'd like to contribute. If you need any help, guidance, or better understanding of lato's internals - I'd be happy to help. Feel free to drop me an email and we can schedule a call.
Hey @pgorecki - thanks a lot for reply and clarification!
I suggest I tinker a bit more with a codebase, clarify how I would plan to approach this task - firstly to me myself, and then i'll message you here or linkedin and suggest to schedule a call and discuss it all live. Would that sound like a plan?
Thanks!
Sounds like a plan.