-1

I have a Python program like this:

class Thing:
    def __init__(self, stuff: Thing):
        self.thing: Thing = stuff

Why does the first usage of Thing fail while the second one succedes? How can I add a type annotation for Thing on the parameter stuff?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Jason Roman
  • 9
  • 1
  • 3

0 Answers0