You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How CSP does automatic inference of generic types, which is different from regular python.
.using -- allows you to force generic type rather than rely on inference. Example usage: csp.const.using(T=[int])([1, 2, 3]) forces the type to a typed list[int], otherwise it would default to just list.
The text was updated successfully, but these errors were encountered:
CSP's support for generic types is documented in https://github.com/Point72/csp/wiki/CSP-Node#generic-types, expand this to inlcude:
.using
-- allows you to force generic type rather than rely on inference. Example usage:csp.const.using(T=[int])([1, 2, 3])
forces the type to a typed list[int], otherwise it would default to just list.The text was updated successfully, but these errors were encountered: