honglei
|
c02b579f1b
|
support AnyURL
|
2023-08-25 22:08:03 +08:00 |
|
honglei
|
d13fb7435b
|
only use typing_extensions to import _AnnotatedAlias
|
2023-08-25 21:43:02 +08:00 |
|
honglei
|
dcb406f0ed
|
fix py3.9+ _AnnotatedAlias
|
2023-08-25 21:36:46 +08:00 |
|
honglei
|
e8247308fc
|
miss import _AnnotatedAlias
|
2023-08-25 21:32:11 +08:00 |
|
honglei
|
aa3325bb54
|
ugly way to fix py3.8/Annotation
|
2023-08-25 21:30:10 +08:00 |
|
honglei
|
e0d32fb27a
|
try fix py3.8/test_nullable.py
|
2023-08-25 21:02:34 +08:00 |
|
honglei
|
ef56d08f2a
|
remove unused import in test_model_copy.py
|
2023-08-25 18:15:17 +08:00 |
|
honglei
|
f266da7b46
|
black/isort test_model_copy.py
|
2023-08-25 18:11:07 +08:00 |
|
Honglei
|
006ec7d166
|
Merge pull request #1 from 50Bytes-dev/main
fix .model_copy(...) Pydantic V2
|
2023-08-25 18:05:13 +08:00 |
|
50bytes.dev
|
45ab47266c
|
fix
|
2023-08-24 18:41:34 +03:00 |
|
50bytes.dev
|
f5fd8504b9
|
fix model_copy
|
2023-08-24 15:08:02 +03:00 |
|
honglei
|
8e2b363c77
|
annotation not null
|
2023-08-20 22:01:45 +08:00 |
|
honglei
|
499bc18857
|
add reason for skipif
|
2023-08-20 21:57:53 +08:00 |
|
honglei
|
7752780fda
|
fix isort
|
2023-08-20 21:54:01 +08:00 |
|
honglei
|
4e89361f93
|
add test for Class hierarchy
|
2023-08-20 21:50:30 +08:00 |
|
honglei
|
6b7925d8ce
|
fix _is_field_noneable
|
2023-08-20 21:10:32 +08:00 |
|
honglei
|
6e89ad374b
|
black/isort for test_nullable.py
|
2023-08-16 23:21:40 +08:00 |
|
honglei
|
045f9bcc8a
|
add test for pydantic.AnyURL
|
2023-08-16 23:18:55 +08:00 |
|
honglei
|
fa8955c700
|
field required
|
2023-08-16 22:58:10 +08:00 |
|
honglei
|
72dc89d92b
|
field is required by default, while nullable=True for Column
|
2023-08-16 22:32:28 +08:00 |
|
honglei
|
6a5f373862
|
Revert "get_column_from_field:sa_column>field attribute>field annotation"
|
2023-08-16 22:20:43 +08:00 |
|
honglei
|
1c626cb8c2
|
Merge branch 'main' of https://github.com/honglei/sqlmodel
|
2023-08-16 21:57:04 +08:00 |
|
Honglei
|
e919dc8e9e
|
Merge branch 'mbsantiago:main' into main
|
2023-08-16 21:26:13 +08:00 |
|
honglei
|
650534e847
|
Merge branch 'main' of https://github.com/honglei/sqlmodel
|
2023-08-16 21:23:29 +08:00 |
|
honglei
|
5b49f778c3
|
get_column_from_field:sa_column>field attribute>field annotation
|
2023-08-16 21:22:57 +08:00 |
|
Santiago Martinez
|
63e2692a87
|
Add importlib-metadata to dev-dependencies
|
2023-08-16 13:57:17 +01:00 |
|
Honglei
|
8cc628c2e1
|
Merge branch 'mbsantiago:main' into main
|
2023-08-15 22:39:01 +08:00 |
|
honglei
|
9e07c1c772
|
fix type check for sa_column
|
2023-08-15 22:38:03 +08:00 |
|
honglei
|
f3e7811a80
|
get_column_from_field support function
|
2023-08-15 18:13:24 +08:00 |
|
Santiago Martinez Balvanera
|
f67b414438
|
Merge pull request #1 from honglei/main
support str|None , mapped_column, AnyURL
|
2023-08-14 22:48:50 +01:00 |
|
honglei
|
46b130dfb7
|
fix isort error for import types
|
2023-08-15 01:30:56 +08:00 |
|
honglei
|
710e92b285
|
black it
|
2023-08-15 01:22:53 +08:00 |
|
honglei
|
fa8902c778
|
add type hints for func is_optional_or_union
|
2023-08-15 01:13:56 +08:00 |
|
honglei
|
a0b84c574d
|
avoid compare types:FunctionType
|
2023-08-15 00:59:49 +08:00 |
|
honglei
|
ce0064b286
|
python version for types.UnionType/Annotated
|
2023-08-15 00:28:01 +08:00 |
|
honglei
|
a22dac8113
|
avoid get_args directly
|
2023-08-14 23:02:32 +08:00 |
|
honglei
|
9da0407609
|
support 3.9/use get_args
|
2023-08-14 21:03:41 +08:00 |
|
honglei
|
347e052656
|
support str|None , mapped_column, AnyURL
|
2023-08-12 19:52:59 +08:00 |
|
Santiago Martinez
|
c99c1a9b1e
|
Make sure tests pass in all supported python versions
|
2023-08-09 12:29:23 +01:00 |
|
Santiago Martinez
|
179183c018
|
Fix linting issues
|
2023-08-09 01:43:50 +01:00 |
|
Santiago Martinez
|
972ee56fde
|
Fix fastapi tests
|
2023-08-09 01:43:36 +01:00 |
|
Anton De Meester
|
40bcdfecff
|
Get all tests except for openapi working
|
2023-08-06 08:01:04 +00:00 |
|
Anton De Meester
|
82888160ac
|
Make all tests but fastapi work
|
2023-08-06 08:01:04 +00:00 |
|
Anton De Meester
|
43d5d41a29
|
Linting
|
2023-08-06 08:01:04 +00:00 |
|
Anton De Meester
|
6955600120
|
Formatting
|
2023-08-06 08:01:04 +00:00 |
|
Anton De Meester
|
a7f8a27c20
|
Upgrade to Pydantic 2
Change imports
Undefined => PydanticUndefined
Update SQLModelMetaclass and SQLModel __init__ and __new__ functions
Update SQL Alchemy type inference
|
2023-08-06 08:01:04 +00:00 |
|
Mohamed Farahat
|
b1848af842
|
formatting and remove unused type
|
2023-08-06 08:01:04 +00:00 |
|
Peter Landry
|
5455c1abe5
|
Fix signature for Session.get
|
2023-08-06 08:01:04 +00:00 |
|
Peter Landry
|
fc120b212d
|
Use ForUpdateArg from sqlalchemy
|
2023-08-06 08:01:04 +00:00 |
|
Peter Landry
|
a4e4546a8c
|
Fix Tuple in jinja template as well
|
2023-08-06 08:01:04 +00:00 |
|