Skip to content

Commit 224c16c

Browse files
authored
Merge pull request #21 from Infisical/daniel/fix-not-subscribable-error
fix: not subscribable error (python version <=3.8)
2 parents 5fd58a0 + 9d818b0 commit 224c16c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
16+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1717

1818
steps:
1919
- uses: actions/checkout@v3

infisical_sdk/infisical_requests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, Generic, Optional, TypeVar
1+
from typing import Any, Dict, Generic, Optional, TypeVar, Type
22
from urllib.parse import urljoin
33
import requests
44
from dataclasses import dataclass
@@ -90,7 +90,7 @@ def _handle_response(self, response: requests.Response) -> Dict[str, Any]:
9090
def get(
9191
self,
9292
path: str,
93-
model: type[T],
93+
model: Type[T],
9494
params: Optional[Dict[str, Any]] = None
9595
) -> APIResponse[T]:
9696

@@ -116,7 +116,7 @@ def get(
116116
def post(
117117
self,
118118
path: str,
119-
model: type[T],
119+
model: Type[T],
120120
json: Optional[Dict[str, Any]] = None
121121
) -> APIResponse[T]:
122122

@@ -140,7 +140,7 @@ def post(
140140
def patch(
141141
self,
142142
path: str,
143-
model: type[T],
143+
model: Type[T],
144144
json: Optional[Dict[str, Any]] = None
145145
) -> APIResponse[T]:
146146

@@ -164,7 +164,7 @@ def patch(
164164
def delete(
165165
self,
166166
path: str,
167-
model: type[T],
167+
model: Type[T],
168168
json: Optional[Dict[str, Any]] = None
169169
) -> APIResponse[T]:
170170

0 commit comments

Comments
 (0)