From 3953c3ba83a4047777efaefab22cf636ede27cc2 Mon Sep 17 00:00:00 2001 From: Matthias Veit Date: Wed, 6 Nov 2024 17:45:53 +0100 Subject: [PATCH] make mypy happy --- fixcore/fixcore/cli/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixcore/fixcore/cli/command.py b/fixcore/fixcore/cli/command.py index d94e25a967..acb01fd6fc 100644 --- a/fixcore/fixcore/cli/command.py +++ b/fixcore/fixcore/cli/command.py @@ -2909,7 +2909,7 @@ def to_str(elem: Any) -> str: .map(extract_values) .chunks(chunk_size) .enumerate() - .flatmap(generate_markdown) # type: ignore + .flatmap(generate_markdown) ) return markdown_chunks @@ -3262,7 +3262,7 @@ def load_by_id_merged( ) -> JsStream: async def load_element(items: JsStream) -> AsyncIterator[JsonElement]: # collect ids either from json dict or string - ids: List[str] = [i["id"] if is_node(i) else i async for i in items] + ids: List[str] = [i["id"] if is_node(i) else i async for i in items] # type: ignore # if there is an entry which is not a string, use the list as is (e.g. chunked) if any(a for a in ids if not isinstance(a, str)): async for a in items: