MiniChain
MiniChain copied to clipboard
Python 3.11 compatibility: dataclass default factory.
trafficstars
Issue #29 describes the problem. To fix it, we use a field with a default_factory.
This looks great. Was planning on updating to Python 3.10 minimum this summer since there are some nice type system improvements.
Is there a reason it is a draft?
I put it as a draft because I didn't do any testing, just made the minimal edit so that I could import again and run my code. I will promote it now.