python 10 compat

This commit is contained in:
sneakers-the-rat 2024-07-02 00:15:18 -07:00
parent 883c28e6d5
commit 566d5211bb
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D

View file

@ -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")