We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use typing.Annotated for schema types
Currently types.Schema is based on dicts type and it produces type checking errors on return values for functions.
This could be resolved by using typing.Annotation.
Replace the current types.Schema implementation by an annotated dict that includes the schema as part of the annotation.
types.Schema
The text was updated successfully, but these errors were encountered:
✨ Use typing.Annotated for schema types (#158)
976a979
de06aec
🔖 1.9.0 [skip ci]
64ec041
# [v1.9.0](v1.8.1...v1.9.0) (2024-11-24) ## ✨ New Features - [`de06aec`](de06aec) Use typing.Annotated for schema types (#158) (Issues: [`#158`](https://github.com/vortico/flama/issues/)) - [`259a873`](259a873) Allow importing ddd without sqlalchemy installed (#161) (Issues: [`#161`](https://github.com/vortico/flama/issues/)) - [`0b62909`](0b62909) Compatibility lib for older python versions (#160) (Issues: [`#160`](https://github.com/vortico/flama/issues/))
perdy
Successfully merging a pull request may close this issue.
Summary
Use typing.Annotated for schema types
Motivation
Currently types.Schema is based on dicts type and it produces type checking errors on return values for functions.
This could be resolved by using typing.Annotation.
Proposed changes
Replace the current
types.Schema
implementation by an annotated dict that includes the schema as part of the annotation.The text was updated successfully, but these errors were encountered: