Skip to content

Commit 9acbe67

Browse files
committed
Make override work in <3.12
1 parent b9d13ac commit 9acbe67

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ruff
22
pytest
33
pytest-cov
4+
typing_extensions

tests/runtests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@
6767
# pytest now provides the test harness; these imports can be removed
6868
# once the legacy CLI runner is deleted.
6969
from argparse import ArgumentParser
70-
from typing import override
7170
from unittest import TextTestResult
7271

72+
from typing_extensions import override
73+
7374
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'lib'))
7475
from pyld import iri_resolver, jsonld
7576

0 commit comments

Comments
 (0)