Is it just callable
? In the meantime I have been using function
as my IDE regards callable
as a bool
.
def func(a: int, b: str, callback: ???)
Is it just callable
? In the meantime I have been using function
as my IDE regards callable
as a bool
.
def func(a: int, b: str, callback: ???)
Copyright © 2021 Jogjafile Inc.
Yes,
typing.Callable
is the right hint for a callback.Also see the Callable section of PEP 484: