Replies: 1 comment 2 replies
-
I think that's a great idea, I also thought about it for mesa-frames but when i tried with typeguard, there was a significant performance overhead. After we have some examples, we can test out pydantic to see whether the performance hit is noticeable or not. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pydantic has a validation decorator used to decorate functions so that the types from argument and return value annotations are enforced: https://docs.pydantic.dev/latest/concepts/validation_decorator/. The V2 has performance improvements that should be considered.
cc: @adamamer20 since mesa-frames has extensive type annotations.
Beta Was this translation helpful? Give feedback.
All reactions