Christopher Barker writes:

 > However, what I haven’t seen in this thread is discussion of what I think
 > is the key question:
 > 
 > Where/how should class attribute doc strings be stored?
 > 
 > Tacked on to the class __doc__ ?

-10.  They need to be accessible via the attribute name.  You could
insert the name before tacking on, but surely whatever format you
choose, there are projects where it would be the wrong style.

 > Another dict?
 > 
 > __attr_doc__

+0.4 for now.

 > Added to __annotaions__ ?

+0.6 for now.  That's where mypy puts type annotations, I suspect you
would have to use values of Annotated type, which might be annoying.

_______________________________________________
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/VVQPFC7O7GUZ5IDHQVC37X4DHCDYYMKY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to