title: __init__(self) -> None: vs __init__(self): in python
body: <p>What is the difference between 1) <code>__init__(self) -&gt; None:</code> and 2) <code>__init__(self):</code> ?</p>
  <pre><code>class A:
      def __init__(self) -&gt; None:
          self.a = 5
  
  class B:
      def __init__(self):
          self.a = 5
  
  print (&quot; A : &quot;, A().a)
  print (&quot; B : &quot;, B().a)
  </code></pre>