Skip to content

Commit 820925b

Browse files
committed
Merge branch 'develop' of github.com:tortoise/tortoise-orm into optional-aiosqlite
2 parents eadb792 + a725917 commit 820925b

File tree

6 files changed

+185
-182
lines changed

6 files changed

+185
-182
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ Changelog
1212

1313
0.26.0 (unreleased)
1414
-------------------
15-
Fixed
16-
^^^^^
17-
- Fix exception when creating aiosqlite connections on aiosqlite==0.22.0 (#2035)
1815

1916
0.25
2017
====
2118

19+
0.25.3
20+
------
21+
Fixed
22+
^^^^^
23+
- Fix exception when creating aiosqlite connections on aiosqlite==0.22.0 (#2035)
24+
- Fix implicit anyio dependency introduced, but not declared (#2045)
25+
2226
0.25.2
2327
------
2428
Fixed

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ requires-python = ">=3.9"
1010
dependencies = [
1111
"pypika-tortoise (>=0.6.3,<1.0.0)",
1212
"iso8601 (>=2.1.0,<3.0.0); python_version < '4.0'",
13-
"anyio (>=4.12.0,<5.0.0)",
14-
"typing-extensions>=4.15.0; python_version < '3.11'",
13+
"anyio",
1514
"pytz",
16-
# Typing support for older Python
17-
"typing-extensions (>= 4.1.0)",
15+
"typing-extensions (>= 4.1.0); python_version < '3.11'",
1816
]
1917
classifiers = [
2018
"License :: OSI Approved :: Apache Software License",

tests/test_table_name.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ async def test_custom_table_name_precedence(self):
3838
self.assertEqual(CustomTable._meta.db_table, "my_custom_table")
3939

4040
async def _tearDownDB(self) -> None:
41+
# Explicitly close aiosqlite connection to fix ResourceWarning
4142
await Tortoise.get_connection("default").close()

tortoise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ async def main() -> None:
648648
portal.call(main)
649649

650650

651-
__version__ = "0.25.2"
651+
__version__ = "0.25.3"
652652

653653
__all__ = [
654654
"Model",

tortoise/filters.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
ValueWrapper,
1919
)
2020

21-
if sys.version_info >= (3, 11):
22-
from typing import NotRequired
23-
else:
24-
from typing_extensions import NotRequired
25-
2621
from tortoise.contrib.postgres.fields import ArrayField
2722
from tortoise.fields import Field, JSONField
2823
from tortoise.fields.relational import BackwardFKRelation, ManyToManyFieldInstance
2924

25+
if sys.version_info >= (3, 11): # pragma:nocoverage
26+
from typing import NotRequired
27+
else:
28+
from typing_extensions import NotRequired
29+
3030
if TYPE_CHECKING: # pragma: nocoverage
3131
from tortoise.models import Model
3232

0 commit comments

Comments
 (0)