File tree Expand file tree Collapse file tree 3 files changed +265
-259
lines changed
Expand file tree Collapse file tree 3 files changed +265
-259
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ dependencies = [
1111 " pypika-tortoise (>=0.6.3,<1.0.0)" ,
1212 " iso8601 (>=2.1.0,<3.0.0); python_version < '4.0'" ,
1313 " aiosqlite (>=0.16.0,<1.0.0)" ,
14+ " anyio" ,
1415 " pytz" ,
15- # Typing support for older Python
16- " typing-extensions (>= 4.1.0)" ,
16+ " typing-extensions (>= 4.1.0); python_version < '3.11'" ,
1717]
1818classifiers = [
1919 " License :: OSI Approved :: Apache Software License" ,
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import operator
4+ import sys
45from collections .abc import Callable , Iterable , Sequence
56from functools import partial
67from typing import TYPE_CHECKING , Any , TypedDict
1617 Term ,
1718 ValueWrapper ,
1819)
19- from typing_extensions import NotRequired
2020
2121from tortoise .contrib .postgres .fields import ArrayField
2222from tortoise .fields import Field , JSONField
2323from tortoise .fields .relational import BackwardFKRelation , ManyToManyFieldInstance
2424
25+ if sys .version_info >= (3 , 11 ): # pragma:nocoverage
26+ from typing import NotRequired
27+ else :
28+ from typing_extensions import NotRequired
29+
2530if TYPE_CHECKING : # pragma: nocoverage
2631 from tortoise .models import Model
2732
You can’t perform that action at this time.
0 commit comments