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

feat: Implement Parameter<usize> for PyParameter. #137

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Conversation

jetuk
Copy link
Member

@jetuk jetuk commented Mar 11, 2024

This supports using PyParameter as an index parameter with updated schema to define the return type of the Python method.

@jetuk jetuk requested a review from Batch21 March 11, 2024 13:55
Copy link
Contributor

@Batch21 Batch21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked for me when loading the custom index parameter in the more complex model we were looking at the other day.

One thing I did notice is that when building the docs the PythonReturnType enum is not included so its not obvious how to set return type. Might be I'm not building them correctly.

@jetuk
Copy link
Member Author

jetuk commented Mar 12, 2024

I've added those types to the public API. They now appear in the docs.

jetuk added 3 commits March 12, 2024 13:41
This supports using PyParameter as an index parameter with updated
schema to define the return type of the Python method.
@jetuk jetuk merged commit 2133bc0 into main Mar 12, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants