Message391491
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. |
|
Date |
User |
Action |
Args |
2021-04-21 06:53:37 | larry | set | recipients:
+ larry |
2021-04-21 06:53:37 | larry | set | messageid: <1618988017.88.0.120470341597.issue43901@roundup.psfhosted.org> |
2021-04-21 06:53:37 | larry | link | issue43901 messages |
2021-04-21 06:53:37 | larry | create | |
|