Skip to content

Commit b57fef0

Browse files
committed
Update api_types.py
1 parent 87c6bc2 commit b57fef0

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

infisical_sdk/api_types.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@ class ApprovalStatus(str, Enum):
1111
REJECTED = "rejected"
1212

1313

14-
def to_camel(string: str) -> str:
15-
"""Convert snake_case to camelCase"""
16-
components = string.split('_')
17-
return components[0] + ''.join(x.title() for x in components[1:])
18-
19-
20-
def from_camel(string: str) -> str:
21-
"""Convert camelCase to snake_case"""
22-
result = [string[0].lower()]
23-
for char in string[1:]:
24-
if char.isupper():
25-
result.extend(['_', char.lower()])
26-
else:
27-
result.append(char)
28-
return ''.join(result)
29-
30-
3114
class BaseModel:
3215
"""Base class for all models"""
3316
def to_dict(self) -> Dict:

0 commit comments

Comments
 (0)