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.Callableis the right hint for a callback.Also see the Callable section of PEP 484: