[Python] Why is my user function call showing 2 parameters instead of 1? [closed]

Discussão em 'Python' iniciado por Stack, Setembro 12, 2025.

  1. Stack

    Stack Membro Participativo

    I'm developing a script that uses functions maintained in other python files. I'm able to import the function I need but am getting an error that a parameter is not being provided. The function only requires 1 parameter, which I am providing when calling it, but the error says there should be 2 parameters.

    [​IMG]

    The python file where the function lives shows only 1 parameter is required.

    [​IMG]

    After I import the function and investigate, it shows that 2 parameters are required.

    [​IMG]

    I'm new to this type of program development and can't find a straight answer for what would be causing this. The closest information I've found mentioned classes and a 'self' parameter but it's not clear to me when / why that would be required.

    Continue reading...

Compartilhe esta Página