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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/DC5JBXCFDE3B3FQ2MZVKCQG4ODWSXG32/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to