From 870d553732008b8a3c4fe8e824132e5308ab9db6 Mon Sep 17 00:00:00 2001 From: Oliver Borchert Date: Tue, 22 Apr 2025 21:50:11 +0200 Subject: [PATCH] fix: Use `Sequence` for `concat_collection_members` --- dataframely/functional.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dataframely/functional.py b/dataframely/functional.py index eb42e7e..d6dbf46 100644 --- a/dataframely/functional.py +++ b/dataframely/functional.py @@ -1,6 +1,7 @@ # Copyright (c) QuantCo 2025-2025 # SPDX-License-Identifier: BSD-3-Clause +from collections.abc import Sequence from typing import TypeVar import polars as pl @@ -62,7 +63,7 @@ def filter_relationship_one_to_at_least_one( # ------------------------------------------------------------------------------------ # -def concat_collection_members(collections: list[C], /) -> dict[str, pl.LazyFrame]: +def concat_collection_members(collections: Sequence[C], /) -> dict[str, pl.LazyFrame]: """Concatenate the members of collections with the same type. Args: