Skip to content

Commit 5bab353

Browse files
committed
Fix use of override for Python < 3.12.
The `override` attribute is not available in the `typing` module in Python 3.11 and lower, it needs to be obtained from `typing_extensions` instead.
1 parent 1206649 commit 5bab353

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sssom/rdf_internal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import logging
66
from datetime import date, datetime
7-
from typing import Any, Dict, List, Optional, Union, cast, override
7+
from typing import Any, Dict, List, Optional, Union, cast
88

99
from curies import Converter
1010
from linkml_runtime.linkml_model.meta import PermissibleValue, SlotDefinition
@@ -19,6 +19,7 @@
1919
PredicateModifierEnum,
2020
SssomVersionEnum,
2121
)
22+
from typing_extensions import override
2223

2324
from .constants import (
2425
ENTITY_TYPE_RDFS_LITERAL,

0 commit comments

Comments
 (0)