From f6709110f06eea16527976428e7c2f1e6b2b8d03 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Wed, 15 Jan 2025 15:51:09 +0100 Subject: [PATCH] fix: not subscribable error (python version <=3.8) --- infisical_sdk/infisical_requests.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/infisical_sdk/infisical_requests.py b/infisical_sdk/infisical_requests.py index 4410287..744c8b7 100644 --- a/infisical_sdk/infisical_requests.py +++ b/infisical_sdk/infisical_requests.py @@ -1,4 +1,4 @@ -from typing import Any, Dict, Generic, Optional, TypeVar +from typing import Any, Dict, Generic, Optional, TypeVar, Type from urllib.parse import urljoin import requests from dataclasses import dataclass @@ -90,7 +90,7 @@ def _handle_response(self, response: requests.Response) -> Dict[str, Any]: def get( self, path: str, - model: type[T], + model: Type[T], params: Optional[Dict[str, Any]] = None ) -> APIResponse[T]: @@ -116,7 +116,7 @@ def get( def post( self, path: str, - model: type[T], + model: Type[T], json: Optional[Dict[str, Any]] = None ) -> APIResponse[T]: @@ -140,7 +140,7 @@ def post( def patch( self, path: str, - model: type[T], + model: Type[T], json: Optional[Dict[str, Any]] = None ) -> APIResponse[T]: @@ -164,7 +164,7 @@ def patch( def delete( self, path: str, - model: type[T], + model: Type[T], json: Optional[Dict[str, Any]] = None ) -> APIResponse[T]: