Skip to content

Commit

Permalink
fix List/Set mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeldmann committed Jul 9, 2024
1 parent 42c9ac3 commit 4df9223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions organize/validators.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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)]

0 comments on commit 4df9223

Please sign in to comment.