
Dec. 13, 2021
1:44 a.m.
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.