3 ms·
Thanks for all the help guys! by the way I took the example from the mypy page def sum_and_stringify(nums: list[int]) -> str: TypeError: 'type' object i
by singularity2001 10y ago
Thanks for all the help guys! by the way I took the example from the mypy page
def sum_and_stringify(nums: list[int]) -> str:
TypeError: 'type' object is not subscriptable
so either just list or List[int] with import, got it.
A classical case of 'critical line missing from example code' (as perfectioned by Bjarne Stroustrup back when)