__annotations__ in __init__ /u/fabthegreat Python Education

Python 3.13 here: Class Test: def init(self): self.a: str = ‘test’ t = Test()

Where can I find the annotation of a? I searched everywhere, in Test, in init, in t… whereas an annotated Classvar will create an annotations right away in Test.

submitted by /u/fabthegreat
[link] [comments]

​r/learnpython Python 3.13 here: Class Test: def init(self): self.a: str = ‘test’ t = Test() Where can I find the annotation of a? I searched everywhere, in Test, in init, in t… whereas an annotated Classvar will create an annotations right away in Test. submitted by /u/fabthegreat [link] [comments] 

Python 3.13 here: Class Test: def init(self): self.a: str = ‘test’ t = Test()

Where can I find the annotation of a? I searched everywhere, in Test, in init, in t… whereas an annotated Classvar will create an annotations right away in Test.

submitted by /u/fabthegreat
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *