MiniChain icon indicating copy to clipboard operation
MiniChain copied to clipboard

Python 3.11 compatibility: dataclass default factory.

Open mattf1n opened this issue 1 year ago • 2 comments
trafficstars

Issue #29 describes the problem. To fix it, we use a field with a default_factory.

mattf1n avatar Jul 10 '24 14:07 mattf1n

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?

srush avatar Jul 14 '24 11:07 srush

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.

mattf1n avatar Jul 16 '24 19:07 mattf1n