I was going through Kaggle environments code. This line is:
def group_by(items: Iterable[TItem], selector: Callable[[TItem], THash]) -> Dict[THash, List[TItem]]:
What are Iterable
, Callable
and Dict
? Are these classes (especially due to capitalized first letter) defined by Python? Also what is this square bracket syntax? Is it something like generics in Java?