Skip to content

Improve Pydantic model usage#744

Merged
superstar54 merged 1 commit intoaiidateam:mainfrom
superstar54:improve_pydantic_model_usage
Jan 22, 2026
Merged

Improve Pydantic model usage#744
superstar54 merged 1 commit intoaiidateam:mainfrom
superstar54:improve_pydantic_model_usage

Conversation

@superstar54
Copy link
Member

@superstar54 superstar54 commented Jan 22, 2026

Fix #741

Previously, Pydantic Models or dataclasses were annotation-only, and users still needed to provide plain dict as inputs/outputs.

On top of scinode/node-graph#142 and aiidateam/aiida-pythonjob#66, this PR allows users to use a Pydantic model as both input and output. No need to provide plain dict.

@superstar54 superstar54 linked an issue Jan 22, 2026 that may be closed by this pull request
@superstar54 superstar54 force-pushed the improve_pydantic_model_usage branch from 45fabc6 to c418118 Compare January 22, 2026 15:47
@superstar54 superstar54 merged commit deca7c7 into aiidateam:main Jan 22, 2026
4 checks passed
@superstar54 superstar54 deleted the improve_pydantic_model_usage branch January 22, 2026 15:55
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.

Pydantic model support is incomplete and counterintuitive

1 participant