forked from farahats9/sqlmodel
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Making checks pass #1
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
972ee56
Fix fastapi tests
mbsantiago 179183c
Fix linting issues
mbsantiago c99c1a9
Make sure tests pass in all supported python versions
mbsantiago 347e052
support str|None , mapped_column, AnyURL
honglei 9da0407
support 3.9/use get_args
honglei a22dac8
avoid get_args directly
honglei ce0064b
python version for types.UnionType/Annotated
honglei a0b84c5
avoid compare types:FunctionType
honglei fa8902c
add type hints for func is_optional_or_union
honglei 710e92b
black it
honglei 46b130d
fix isort error for `import types`
honglei f67b414
Merge pull request #1 from honglei/main
mbsantiago f3e7811
get_column_from_field support function
honglei 9e07c1c
fix type check for sa_column
honglei 8cc628c
Merge branch 'mbsantiago:main' into main
honglei 63e2692
Add importlib-metadata to dev-dependencies
mbsantiago 5b49f77
get_column_from_field:sa_column>field attribute>field annotation
honglei 650534e
Merge branch 'main' of https://github.com/honglei/sqlmodel
honglei e919dc8
Merge branch 'mbsantiago:main' into main
honglei 1c626cb
Merge branch 'main' of https://github.com/honglei/sqlmodel
honglei 6a5f373
Revert "get_column_from_field:sa_column>field attribute>field annotat…
honglei 72dc89d
field is required by default, while nullable=True for Column
honglei fa8955c
field required
honglei 045f9bc
add test for pydantic.AnyURL
honglei 6e89ad3
black/isort for test_nullable.py
honglei 6b7925d
fix _is_field_noneable
honglei 4e89361
add test for Class hierarchy
honglei 7752780
fix isort
honglei 499bc18
add reason for skipif
honglei 8e2b363
annotation not null
honglei f5fd850
fix model_copy
50Bytes-dev 45ab472
fix
50Bytes-dev 006ec7d
Merge pull request #1 from 50Bytes-dev/main
honglei f266da7
black/isort test_model_copy.py
honglei ef56d08
remove unused import in test_model_copy.py
honglei e0d32fb
try fix py3.8/test_nullable.py
honglei aa3325b
ugly way to fix py3.8/Annotation
honglei e824730
miss import _AnnotatedAlias
honglei dcb406f
fix py3.9+ _AnnotatedAlias
honglei d13fb74
only use typing_extensions to import _AnnotatedAlias
honglei c02b579
support AnyURL
honglei cb6ccf4
forgot black it
honglei 4213c97
support AnyURL
honglei bcb6f32
Merge pull request #2 from honglei/main
mbsantiago 8b92179
support EmailStr
honglei ff8ed0b
Update pyproject.toml to support email
honglei 80bc2a1
Merge branch 'mbsantiago:main' into main
honglei 3005495
Merge pull request #3 from honglei/main
mbsantiago File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We. need to figure out
default_factory
as well I think.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default factory is a bit trickier since it is hard to know if the passed value is the output of the default factory or a user provided value. I'm not sure if Pydantic does run field validations in the case it was generated by the default factor, but if it doesn't then we need to avoid SQLModel from running the validation.