[Python] What is Python's keyword argument shortcut?

Discussão em 'Python' iniciado por Stack, Março 28, 2025.

  1. Stack

    Stack Membro Participativo

    I was just typing some code with pylance/pyright an an error/information about a new feature poped-up:

    def foo(x): ...

    foo(x=) # Keyword argument shortcut requires Python 3.14 or newer (Pylance)


    This raises the question: What is Python keyword argument shortcut that pyright mentions?

    Continue reading...

Compartilhe esta Página