Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
eighthcolor22 committed Mar 19, 2024
1 parent 799c7f8 commit b877ac2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions async_firebase/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async def send_request(
:return: HTTP response
"""
url = join_url(self.BASE_URL, uri)
return await self._send_request(
return await self._send_request( # type: ignore
url=url,
response_handler=response_handler,
json_payload=json_payload,
Expand Down Expand Up @@ -256,7 +256,7 @@ async def send_iid_request(
url = join_url(self.IID_URL, uri)
headers = headers or await self.prepare_headers()
headers.update(self.IID_HEADERS)
return await self._send_request(
return await self._send_request( # type: ignore
url=url,
response_handler=response_handler,
json_payload=json_payload,
Expand Down
2 changes: 1 addition & 1 deletion async_firebase/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def __init__(
self.exception = exception
self._success_count = 0
self._failure_count = 0
self._errors = []
self._errors: t.List[ErrorInfo] = []

if resp:
self._handle_response(resp)
Expand Down
2 changes: 1 addition & 1 deletion async_firebase/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def serialize_mime_message(
return fp.getvalue()


FCMResponseType = t.TypeVar("FCMResponseType", FCMResponse, FCMBatchResponse)
FCMResponseType = t.TypeVar("FCMResponseType", FCMResponse, FCMBatchResponse, TopicManagementResponse)


class FCMResponseHandlerBase(ABC, t.Generic[FCMResponseType]):
Expand Down

0 comments on commit b877ac2

Please sign in to comment.