from typing import Callable
def f() -> Callable:
return f
How to explicitly define f's type? like Callable[[], Callable]
I think it is slightly like a linked list, but I can't implement it.
from typing import Union
class Node:
def __init__(self, val):
self.val = val
self.next: Union[Node, None] = None