From 5ab005a506164ed924574efac98b9846e9d84cd7 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Mon, 1 Jan 2024 16:22:04 +0000 Subject: [PATCH] misc. --- functionalpy/_generate_pyi.py | 1 - functionalpy/_sequence.pyi | 6 ------ 2 files changed, 7 deletions(-) diff --git a/functionalpy/_generate_pyi.py b/functionalpy/_generate_pyi.py index 7918032..4636f54 100644 --- a/functionalpy/_generate_pyi.py +++ b/functionalpy/_generate_pyi.py @@ -26,7 +26,6 @@ def flatten(self: Seq[TYPE[S] | T]) -> Seq[S]: ...""" TypeMarker("tuple[S, ...]"), TypeMarker("Sequence[S]"), TypeMarker("list[S]"), - TypeMarker("Mapping[S, U]"), TypeMarker("set[S]"), TypeMarker("frozenset[S]"), ]: diff --git a/functionalpy/_sequence.pyi b/functionalpy/_sequence.pyi index e30a765..5942b9d 100644 --- a/functionalpy/_sequence.pyi +++ b/functionalpy/_sequence.pyi @@ -71,12 +71,6 @@ class Seq(Generic[T]): @overload def flatten(self: Seq[list[S] | S]) -> Seq[S]: ... - # Mapping[S, U] # noqa: ERA001 - @overload - def flatten(self: Seq[Mapping[S, U]]) -> Seq[S]: ... - @overload - def flatten(self: Seq[Mapping[S, U] | S]) -> Seq[S]: ... - # set[S] # noqa: ERA001 @overload def flatten(self: Seq[set[S]]) -> Seq[S]: ...