Skip to content

Commit 0c17771

Browse files
authored
Merge pull request #46 from febus982/pydantic_v2
Add support for pydantic v2
2 parents 3668ccb + bb46175 commit 0c17771

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,26 @@ build-backend = "poetry_dynamic_versioning.backend"
3939

4040
[tool.poetry.dependencies]
4141
python = ">=3.8,<3.12"
42-
pydantic = "~1.10.2"
42+
pydantic = ">=1.10.2, <3.0.0"
4343
SQLAlchemy = { version = "~2.0.0", extras = ["asyncio", "mypy"] }
4444

4545
[tool.poetry.group.dev]
4646
optional = true
4747

4848
[tool.poetry.group.dev.dependencies]
49-
aiosqlite = "~0.18.0"
50-
coverage = "~6.5.0"
51-
black = "~22.10.0"
52-
mkdocs = "~1.4.3"
53-
mkdocs-material = "~9.1.16"
54-
mypy = "~0.990"
55-
pytest = "~7.2.0"
56-
pytest-asyncio = "~0.20.3"
57-
pytest-cov = "~4.0.0"
58-
pytest-factoryboy = "~2.5.0"
59-
pytest-xdist = "~3.0.2"
60-
ruff = "~0.0.263"
61-
pymdown-extensions = "^10.0.1"
49+
aiosqlite = ">=0.18.0"
50+
coverage = ">=6.5.0"
51+
black = ">=22.10.0"
52+
mkdocs = ">=1.4.3"
53+
mkdocs-material = ">=9.1.16"
54+
mypy = ">=0.990"
55+
pytest = ">=7.2.0"
56+
pytest-asyncio = ">=0.20.3"
57+
pytest-cov = ">=4.0.0"
58+
pytest-factoryboy = ">=2.5.0"
59+
pytest-xdist = ">=3.0.2"
60+
ruff = ">=0.0.263"
61+
pymdown-extensions = ">=10.0.1"
6262

6363
[tool.pytest.ini_options]
6464
asyncio_mode = "auto"

sqlalchemy_bind_manager/_bind_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020

2121
class SQLAlchemyConfig(BaseModel):
22-
engine_options: Union[dict, None]
2322
engine_url: str
24-
session_options: Union[dict, None]
23+
engine_options: Union[dict, None] = None
24+
session_options: Union[dict, None] = None
2525

2626

2727
class SQLAlchemyAsyncConfig(BaseModel):
28-
engine_options: Union[dict, None]
2928
engine_url: str
30-
session_options: Union[dict, None]
29+
engine_options: Union[dict, None] = None
30+
session_options: Union[dict, None] = None
3131

3232

3333
class SQLAlchemyBind(BaseModel):

0 commit comments

Comments
 (0)