mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
python 10 compat
This commit is contained in:
parent
883c28e6d5
commit
566d5211bb
1 changed files with 2 additions and 3 deletions
|
@ -14,7 +14,6 @@ from typing import (
|
||||||
Type,
|
Type,
|
||||||
TypeVar,
|
TypeVar,
|
||||||
Union,
|
Union,
|
||||||
Unpack,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
from linkml_runtime.linkml_model import (
|
from linkml_runtime.linkml_model import (
|
||||||
|
@ -29,9 +28,9 @@ from pydantic import BaseModel
|
||||||
from nwb_schema_language import Attribute, Dataset, Group, Schema
|
from nwb_schema_language import Attribute, Dataset, Group, Schema
|
||||||
|
|
||||||
if sys.version_info.minor >= 11:
|
if sys.version_info.minor >= 11:
|
||||||
from typing import TypeVarTuple
|
from typing import TypeVarTuple, Unpack
|
||||||
else:
|
else:
|
||||||
from typing_extensions import TypeVarTuple
|
from typing_extensions import TypeVarTuple, Unpack
|
||||||
|
|
||||||
T = TypeVar("T", Dataset, Attribute, Schema, Group, BaseModel)
|
T = TypeVar("T", Dataset, Attribute, Schema, Group, BaseModel)
|
||||||
Ts = TypeVarTuple("Ts")
|
Ts = TypeVarTuple("Ts")
|
||||||
|
|
Loading…
Reference in a new issue