Looks like type resolution on empty containers fails with a long and cryptic stack.
My guess is its failing because its trying to type the element as well, but there is no element. In this case it should just default to the type itself ( ie list rather than typing.List[T] )
Simple repro:
csp.const([1]) # Good
csp.const([]) # Bad
csp.const(set()) # Bad
csp.const(dict()) # Bad
Looks like type resolution on empty containers fails with a long and cryptic stack. My guess is its failing because its trying to type the element as well, but there is no element. In this case it should just default to the type itself ( ie list rather than typing.List[T] )
Simple repro: