Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand generic types documentation #293

Open
2 tasks
pavithraes opened this issue Jun 22, 2024 · 0 comments
Open
2 tasks

Expand generic types documentation #293

pavithraes opened this issue Jun 22, 2024 · 0 comments
Labels
part: documentation Improvements/bugs/changes to documentation

Comments

@pavithraes
Copy link
Collaborator

pavithraes commented Jun 22, 2024

CSP's support for generic types is documented in https://github.com/Point72/csp/wiki/CSP-Node#generic-types, expand this to inlcude:

  • 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.
@pavithraes pavithraes added the part: documentation Improvements/bugs/changes to documentation label Jun 22, 2024
@pavithraes pavithraes changed the title Document inference of generic types Expand generic types documentation Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part: documentation Improvements/bugs/changes to documentation
Projects
None yet
Development

No branches or pull requests

1 participant