I'll go ahead and throw this out there: I was talking to a friend about
this and he pointed out something simple but astute.
Will this be expected to work?
class C:
x: Annotated [Any, "spam"]
help(C.x)
Obviously it shouldn't as things stand now because that's an
AttributeError.
But if I'm mucking about in the interpreter and I want to see the docstring
of a runtime defined (but not import time) attribute, it would be kind of
nice if it would work. And it seems reasonable to try and create a way for
it to work.
_______________________________________________
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/7OJISJNCVKIFNA5LYRBHL7C2RLK3B5FI/
Code of Conduct: http://python.org/psf/codeofconduct/