What's the purpose of the dictionary type hint below?
def func(a: list) -> list:
b: dict[int, set[int]] = {}
# do stuff
# return a list
Is it only for use with a static type checker, or does it have other consequences? There are some similar typing questions on here but I haven't seen any answers newer than Python 3.7