Skip to content

Commit cf0321a

Browse files
committed
fix: typecheck fail error
1 parent e250ffe commit cf0321a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

services/workspace_tabs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import logging
66
import os
77
import sqlite3
8+
from collections.abc import Mapping
89
from datetime import datetime
910
from typing import Any
1011

@@ -95,7 +96,7 @@ def _kv_payload_log_meta(value: object | None) -> tuple[int, str | None]:
9596
def _assemble_tab_from_composer_data(
9697
composer_id: str,
9798
composer: Composer,
98-
bubble_map: dict[str, Bubble | dict[str, Any]],
99+
bubble_map: Mapping[str, Bubble | dict[str, Any]],
99100
contexts: list[dict],
100101
code_block_diffs: list[dict],
101102
workspace_display_name: str,

tests/test_blob_parsing_fuzz.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
)
5656

5757
_BUBBLE_ID = st.text(
58-
alphabet=st.characters(blacklist_categories=("Cs",), blacklist_characters="\x00"),
58+
alphabet=st.characters(
59+
blacklist_categories=("Cs",), # type: ignore[arg-type]
60+
blacklist_characters="\x00",
61+
),
5962
min_size=1,
6063
max_size=80,
6164
)

0 commit comments

Comments
 (0)