Correct Type annotation for __init__ Correct Type annotation for __init__ python python

Correct Type annotation for __init__


self should be omitted from the annotation when it is given as a comment, and __init__() should be marked as -> None. This is all specified explicitly in PEP-0484.