From 446ec37ce82e886ede7aef9270fdb10ee5238d8e Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Tue, 5 Nov 2024 18:54:36 +0200 Subject: [PATCH] fix: TypeVar is imported from typing-extensions --- ckanext/collection/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/collection/types.py b/ckanext/collection/types.py index 1e6dc0a..84e722d 100644 --- a/ckanext/collection/types.py +++ b/ckanext/collection/types.py @@ -2,11 +2,11 @@ import abc from collections.abc import Sized -from typing import Any, Callable, Generic, Iterable, Literal, Protocol, Union +from typing import Any, Callable, Generic, Iterable, Literal, Protocol, Union, TypeVar import sqlalchemy as sa from sqlalchemy.engine import Engine -from typing_extensions import NotRequired, TypeAlias, TypedDict, TypeVar +from typing_extensions import NotRequired, TypeAlias, TypedDict # CollectionFactory: TypeAlias = "Callable[[str, dict[str, Any]], BaseCollection[Any]]"