From 4df9223cbcd570dd903e5846def53eb703fc0eb4 Mon Sep 17 00:00:00 2001 From: Thomas Feldmann Date: Tue, 9 Jul 2024 15:38:54 +0200 Subject: [PATCH] fix List/Set mixup --- organize/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/organize/validators.py b/organize/validators.py index 258fb8bf..636e1037 100644 --- a/organize/validators.py +++ b/organize/validators.py @@ -1,4 +1,4 @@ -from typing import Annotated, Any, Iterable, List, Mapping, TypeVar +from typing import Annotated, Any, Iterable, List, Mapping, Set, TypeVar from pydantic.functional_validators import BeforeValidator @@ -26,4 +26,4 @@ def flatten(x: Any): T = TypeVar("T") FlatList = Annotated[List[T], BeforeValidator(flatten)] -FlatSet = Annotated[List[T], BeforeValidator(flatten)] +FlatSet = Annotated[Set[T], BeforeValidator(flatten)]