[Python] Annotate function that passes parameters to another function

Discussão em 'Python' iniciado por Stack, Novembro 27, 2024.

  1. Stack

    Stack Membro Participativo

    def foo(myarg, **other_args):
    # do something
    return bar(**other_args)


    Is it possible to annotate this function in a way that would make it clear to IDEs that other_args are the arguments of function bar()? So that the IDE would provide a helpful code completion in this case.

    Continue reading...

Compartilhe esta Página