Skip to content

Commit

Permalink
fix: not subscribable error (python version <=3.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Jan 15, 2025
1 parent 5fd58a0 commit f670911
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions infisical_sdk/infisical_requests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]:

Expand All @@ -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]:

Expand All @@ -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]:

Expand All @@ -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]:

Expand Down

0 comments on commit f670911

Please sign in to comment.