Skip to content

Commit 262c94b

Browse files
authored
Merge pull request #118 from DanCardin/dc/import
fix: sqlalchemy<2 import-time regression.
2 parents a08bb1e + 9b9adee commit 262c94b

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## 0.15
44

5+
### 0.15.13
6+
- fix: sqlalchemy<2 import-time regression.
7+
58
### 0.15.12
69
- fix: Enable registering zero objects (enable without declaring anything).
710
- fix: Add explicit relkind casts to ensure compatibility with postgres 11.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sqlalchemy-declarative-extensions"
3-
version = "0.15.12"
3+
version = "0.15.13"
44
authors = [
55
{name = "Dan Cardin", email = "ddcardin@gmail.com"},
66
]

src/sqlalchemy_declarative_extensions/dialects/postgresql/schema.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from typing import Collection
1+
from __future__ import annotations
2+
3+
from typing import TYPE_CHECKING, Collection
24

35
from sqlalchemy import (
4-
BindParameter,
56
String,
67
and_,
78
bindparam,
@@ -17,6 +18,9 @@
1718

1819
from sqlalchemy_declarative_extensions.sqlalchemy import select
1920

21+
if TYPE_CHECKING:
22+
from sqlalchemy.sql.elements import BindParameter
23+
2024
char = CHAR(1)
2125

2226

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)