File tree Expand file tree Collapse file tree 6 files changed +185
-182
lines changed
Expand file tree Collapse file tree 6 files changed +185
-182
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,17 @@ Changelog
1212
13130.26.0 (unreleased)
1414-------------------
15- Fixed
16- ^^^^^
17- - Fix exception when creating aiosqlite connections on aiosqlite==0.22.0 (#2035)
1815
19160.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+
22260.25.2
2327------
2428Fixed
Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ requires-python = ">=3.9"
1010dependencies = [
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]
1917classifiers = [
2018 " License :: OSI Approved :: Apache Software License" ,
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change 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-
2621from tortoise .contrib .postgres .fields import ArrayField
2722from tortoise .fields import Field , JSONField
2823from 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+
3030if TYPE_CHECKING : # pragma: nocoverage
3131 from tortoise .models import Model
3232
You can’t perform that action at this time.
0 commit comments