From 566d5211bb1d7ea858dd78b23a78264981fa3988 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Tue, 2 Jul 2024 00:15:18 -0700 Subject: [PATCH] python 10 compat --- nwb_linkml/src/nwb_linkml/adapters/adapter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nwb_linkml/src/nwb_linkml/adapters/adapter.py b/nwb_linkml/src/nwb_linkml/adapters/adapter.py index bce9647..f025125 100644 --- a/nwb_linkml/src/nwb_linkml/adapters/adapter.py +++ b/nwb_linkml/src/nwb_linkml/adapters/adapter.py @@ -14,7 +14,6 @@ from typing import ( Type, TypeVar, Union, - Unpack, ) from linkml_runtime.linkml_model import ( @@ -29,9 +28,9 @@ from pydantic import BaseModel from nwb_schema_language import Attribute, Dataset, Group, Schema if sys.version_info.minor >= 11: - from typing import TypeVarTuple + from typing import TypeVarTuple, Unpack else: - from typing_extensions import TypeVarTuple + from typing_extensions import TypeVarTuple, Unpack T = TypeVar("T", Dataset, Attribute, Schema, Group, BaseModel) Ts = TypeVarTuple("Ts")