Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import logging
import threading
import time
from collections.abc import Callable, Sequence
from collections.abc import Callable, MutableMapping, Sequence
from typing import Any, final

import requests
Expand Down Expand Up @@ -227,7 +227,7 @@ def _truncate_text(text: str, max_length: int) -> str:
return text[:max_length] + "..."
return text

def _post_with_retries(self, url: str, body: str, headers: dict[str, str]) -> bool:
def _post_with_retries(self, url: str, body: str, headers: MutableMapping[str, str | bytes]) -> bool:
for attempt in range(DEFAULT_MAX_RETRIES + 1):
try:
resp = self._session.post(
Expand Down
Loading