[Python] How can I specify Python type hint for a tuple whose first element is Callable and...

Discussão em 'Python' iniciado por Stack, Maio 27, 2025.

  1. Stack

    Stack Membro Participativo

    How can I specify a Python type hint for a tuple whose first element is Callable and subsequent elements are Any?

    I tried var: tuple[Callable, Any, ...], but got the following warning in VS Code:

    "..." is allowed only as the second of two arguments

    I'm using Python 12.10.3 on Ubuntu 24.04.

    Continue reading...

Compartilhe esta Página