Skip to content

Commit

Permalink
Merge pull request #21 from Infisical/daniel/fix-not-subscribable-error
Browse files Browse the repository at this point in the history
fix: not subscribable error (python version <=3.8)
  • Loading branch information
DanielHougaard authored Jan 15, 2025
2 parents 5fd58a0 + 9d818b0 commit 224c16c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
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 224c16c

Please sign in to comment.