aiosmtpd icon indicating copy to clipboard operation
aiosmtpd copied to clipboard

Drop attrs and use dataclass instead

Open pepoluan opened this issue 2 years ago • 2 comments
trafficstars

Another thought occurred to me: As we've dropped Python 3.6 support, we can also use dataclass rather than attrs.

This will reduce aiosmtpd's dependency for sure.

pepoluan avatar Dec 22 '22 12:12 pepoluan

I have found that attrs's kw_only field specifier is widely used, and dataclass didn't begin to have the same feature until 3.10

So... keep this dep for now?

pepoluan avatar Dec 30 '22 17:12 pepoluan

That's probably fair enough. I don't actually even know attrs or dataclass that well, unfortunately.

waynew avatar Jan 02 '23 17:01 waynew