News for hackers. Stuff that matters.
Re:Static types in Python by gglanzani on Friday October 14, 2016 @01:43AM (#12706335)
This is not correct (try returning a defaultdict). That is the reason that Python 3.6 added a new inline type hint syntax

    My_dict: defaultdict[int, List[int]] = defaultdict(int)

There are no comments on this comment yet.