Skip to content

Commit

Permalink
using python 3.7 syntax for type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkahan committed May 3, 2023
1 parent 0781532 commit edc7cb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vonage/proactive_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import requests
import logging
from typing import List

logger = logging.getLogger("vonage")

Expand Down Expand Up @@ -96,7 +97,7 @@ def delete_item(self, list_id: str, item_id: str):
auth_type=self._auth_type,
)

def download_list_items(self, list_id: str, file_path) -> list[dict]:
def download_list_items(self, list_id: str, file_path) -> List[dict]:
uri = f'https://{self._client.proactive_connect_host()}/v0.1/bulk/lists/{list_id}/items/download'
logger.debug(f"GET request sent to {repr(uri)}")
response = requests.get(
Expand Down

0 comments on commit edc7cb4

Please sign in to comment.