# HG changeset patch # User Dennis Fink # Date 2022-02-28 19:01:12 # Node ID 1ee5e95a6cc26885fdcc7711c9981ae4d514905d # Parent 6fa39f6858295b6385202f9ea262ebc7f18034e3 Make it python3.7 compatible diff --git a/stockcli/utils.py b/stockcli/utils.py --- a/stockcli/utils.py +++ b/stockcli/utils.py @@ -1,7 +1,7 @@ import logging import string from operator import attrgetter -from typing import Any, Optional +from typing import Any, Dict, Optional import click import requests @@ -52,11 +52,11 @@ def get_request(url_path: str) -> Any: return make_request("get", url_path) -def post_request(url_path: str, data: dict[str, Any]) -> Any: +def post_request(url_path: str, data: Dict[str, Any]) -> Any: return make_request("post", url_path, data) -def put_request(url_path: str, data: dict[str, Any]) -> Any: +def put_request(url_path: str, data: Dict[str, Any]) -> Any: return make_request("put", url_path, data)