Python Error: __init__() takes at least 6 arguments (6 given) : So I have searched every one of these questions but I didn't find anything helping me.

I'm still relatively new to Python and I have this class for a simple dialogue box displaying some text:

    class DialogueBox(object):
    def __init__(self, text, font, size, wh, pos="center", padding=20):
        self.text = text
        self.font = font
        self.size = size
        self.width = wh[0]
        self.height = wh[1]

        self.image = pygame.image.load("img/dialogue_box_background.png")
        self.image = pygame.transform.scale(self.image, (self.width, self.height))

        if pos == "center":
            self.pos[0] = screensize[0] - (self.width / 2)
            self.pos[1] = screensize[1] - (self.height / 2)
        else:
            self.pos = pos

        self.textpos = tuple(self.pos[0] + (padding / 2), self.pos[1] + (padding / 2))
        self.rect = pygame.Rect(self.pos[0], self.pos[1], self.width, self.height)
        
        self.textfont = pygame.font.Font(font,size)
        self.textsurf = self.textfont.render(text, 1, (255,255,255))
        
        if self.textsurf.get_width() > (width - padding):
            self.mode = "long"
        else:
            self.mode = "short"

    def draw(self):
        screen.blit(self.image, self.pos)
        if self.mode == "short":
            textfunc(self.text, self.font, (self.textpos[0] + (self.width / 2), self.textpos[1] + (self.height / 2), (255,255,255)))
        else:
            blit_text(screen, self.text, self.textpos, self.textfont, pygame.Color("white"))

I am 100% aware that the indentation of class DialgueBox(object): is wrong here, it is correct in my code. Stackoverflow just messed with my indentation for some reason and I didn't want to put 4 spaces in front of every line of code of the class. Just ignore it.

Anyway, I then do

    opts_rsto_box = DialogueBox(curlang["cfdial"][0],genfont,(100,100))

and get the error

    Traceback (most recent call last):
        File "D:\Programmieren\SpaceStrategieGame\p.py", line 191, in <module>
            update_rects()
        File "D:\Programmieren\SpaceStrategieGame\p.py", line 182, in update_rects
            opts_rsto_box = DialogueBox(curlang["cfdial"][0],genfont,(100,100))
    TypeError: __init__() takes at least 5 arguments (4 given)

which is pretty weird because the class has only 4 required arguments.

Really sorry if this is a stupid question but I don't understand why I get this error.