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

Codecs (part 6) - ABI definitions #54

Merged
merged 2 commits into from
Jun 6, 2024
Merged

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Jun 6, 2024

This is part of a series of pull requests.

See: #32.

Defines ABI definition concepts, as Python classes.

@andreibancioiu andreibancioiu self-assigned this Jun 6, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review June 6, 2024 11:28
popenta
popenta previously approved these changes Jun 6, 2024

class EndpointDefinition:
def __init__(self,
name: str,

Choose a reason for hiding this comment

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

Maybe we can also have docs here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

class ParameterDefinition:
def __init__(self, name: str, type: str) -> None:
self.name = name
self.type = type

Choose a reason for hiding this comment

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

Maybe (I don't know if those are relevant) multi_arg: bool for inputs or multi_result: bool for outputs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are redundant / not relevant, indeed. Sufficient information is captured in the type expression itself.

@andreibancioiu andreibancioiu merged commit 3f6dbe6 into feat/codecs Jun 6, 2024
1 of 5 checks passed
@andreibancioiu andreibancioiu deleted the codecs-june-6 branch June 6, 2024 13:31
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.

3 participants