Skip to content

Commit 2276d3b

Browse files
author
Caio Fontes
committed
fix: fix typing for older python versions
1 parent 65a5785 commit 2276d3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

elasticsearch_dsl/query.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
Any,
2323
Callable,
2424
ClassVar,
25+
List,
2526
Mapping,
2627
MutableMapping,
2728
Optional,
@@ -231,7 +232,7 @@ def __invert__(self) -> Query:
231232
if not any(chain(self.must, self.filter, self.should, self.must_not)):
232233
return MatchNone()
233234

234-
negations: list[Query] = []
235+
negations: List[Query] = []
235236
for q in chain(self.must, self.filter):
236237
negations.append(~q)
237238

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def lint(session):
8383
session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES)
8484

8585

86-
@nox.session(python="3.12")
86+
@nox.session(python="3.8")
8787
def type_check(session):
8888
session.install("mypy", ".[develop]")
8989
errors = []

0 commit comments

Comments
 (0)