refactor(line): fold two hanging signatures

This commit is contained in:
Teknium
2026-09-02 23:20:25 -07:00
parent 3fe6ce6c27
commit 9e9a8f1d36

View File

@@ -208,8 +208,7 @@ def _resolve_chat(source: Dict[str, Any]) -> Tuple[str, str]:
def _allowed_for_source(
source: Dict[str, Any], *, allow_all: bool, user_ids: Set[str], group_ids: Set[str], room_ids: Set[str],
) -> bool:
source: Dict[str, Any], *, allow_all: bool, user_ids: Set[str], group_ids: Set[str], room_ids: Set[str]) -> bool:
"""Three-list gate: users, groups, rooms."""
if allow_all:
return True
@@ -588,8 +587,7 @@ class LineAdapter(BasePlatformAdapter):
self._pending_buttons.pop(chat_id, None)
async def _download_media(
self, message_id: str, msg_type: str, *, filename: Optional[str] = None
) -> Tuple[Optional[str], str]:
self, message_id: str, msg_type: str, *, filename: Optional[str] = None) -> Tuple[Optional[str], str]:
if not self._client or not message_id:
return None, ""
try: