I feel like we could possible use the slots being a dict here, this is already
a supported feature and is able to document attributes indivually, and
dataclasses does have a slots argument now in 3.10
class Foo:
"""docstring for Foo"""
__slots__ = {"bar": "docstring for bar"}
def __init__(self, bar):
self.bar = bar
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/DC5JBXCFDE3B3FQ2MZVKCQG4ODWSXG32/
Code of Conduct: http://python.org/psf/codeofconduct/