Skip to content

Conversation

@segeljakt
Copy link

@segeljakt segeljakt commented Aug 15, 2025

With this change, API functions are now statically typed. This should make it easier for the user to see what types of data the API functions take as input and produce as output. Note that this is a breaking change, since it requires changing the functions so that they return Python objects (e.g., Process, Colony, Executor), instead of JSON.

Also, this PR fixes all pyright errors and some inconsistencies I found in the API versus what the latest version of Colonies expects.

Makes the pycolonies API statically typed. All functions now return
statically typed Python objects instead of JSON objects. This makes it
easier for the user to know what type of data the API functions return.

This PR adds classes to model.py, according to the colonies
RPC schema, that are then used in pycolonies.py.

Also, this PR fixes all pyright errors.
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.

1 participant