title: Error RecursionError: maximum recursion depth exceeded while calling a Python object
body: <p>Code that calls class</p>
  <pre class="lang-py prettyprint-override"><code>for y in range(len(bMap)):
     for x in range(len(bMap[y])):
         if bMap[y][x] != 0 and bMap[y][x] != 1:
             block = functions.loadBlocks(Assets.Blocks[bMap[y][x]])
             Assets.blocks.add(block)
  </code></pre>
  <p>Code of the class</p>
  <pre class="lang-py prettyprint-override"><code>class loadBlocks(pygame.sprite.Sprite)
      def __int__(self, sprite):
          super(self, sprite).__init__()
          self.image = pygame.image.load(sprite).convert_alpha()
          self.image = pygame.transform.scale(self.image, (imageSize, imageSize))
          selfRect = self.image.get_rect()
          selfRect.x, selfRect.y = 0, 0
          self.rect = selfRect
  </code></pre>
  <p>Error</p>
  <pre class="lang-none prettyprint-override"><code>  File &quot;C:\Users\TUF\PycharmProjects\Badorp\main.py&quot;, line 48, in &lt;module&gt;
      block = functions.loadBlocks(Assets.Blocks[bMap[y][x]])
    File &quot;C:\Users\TUF\PycharmProjects\Badorp\venv\lib\site-packages\pygame\sprite.py&quot;, line 116, in __init__
      self.add(*groups)
    File &quot;C:\Users\TUF\PycharmProjects\Badorp\venv\lib\site-packages\pygame\sprite.py&quot;, line 134, in add
      self.add(*group)
    File &quot;C:\Users\TUF\PycharmProjects\Badorp\venv\lib\site-packages\pygame\sprite.py&quot;, line 134, in add
      self.add(*group)
    File &quot;C:\Users\TUF\PycharmProjects\Badorp\venv\lib\site-packages\pygame\sprite.py&quot;, line 134, in add
      self.add(*group)
    [Previous line repeated 993 more times]
    File &quot;C:\Users\TUF\PycharmProjects\Badorp\venv\lib\site-packages\pygame\sprite.py&quot;, line 129, in add
      if hasattr(group, &quot;_spritegroup&quot;):
  RecursionError: maximum recursion depth exceeded while calling a Python object
  
  Process finished with exit code -1
  </code></pre>