Larry Hastings <la...@hastings.org> added the comment:
Huh. The sample code in my thread got goofed up somewhere along the way--maybe it's my fault, maybe it was done to me by some automated process. Anyway, the example demonstrating classes inheriting annotations was meant to be formatted like this: class A: ax:int=3 class B(A): pass print(getattr(B, '__annotations__', {})) Maybe some over-smart doodad decided that no paragraph would ever start with spaces, so they helpfully removed them? Hmm. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43901> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com