aio-libs / aiosmtpd

A reimplementation of the Python stdlib smtpd.py based on asyncio.
https://aiosmtpd.aio-libs.org
Apache License 2.0
319 stars 96 forks source link

Drop attrs and use dataclass instead #341

Open pepoluan opened 1 year ago

pepoluan commented 1 year ago

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 commented 1 year ago

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?

waynew commented 1 year ago

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