Chore/follow_snake_conventions_in_config (#716)

This commit is contained in:
Ayush Mishra
2023-09-27 21:38:42 +05:30
committed by GitHub
parent 70f2de4fd3
commit 16f8de810c
17 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,21 @@
from typing import Any, Dict
from embedchain.helper.json_serializable import JSONSerializable
class BaseConfig(JSONSerializable):
"""
Base config.
"""
def __init__(self):
"""Initializes a configuration class for a class."""
pass
def as_dict(self) -> Dict[str, Any]:
"""Return config object as a dict
:return: config object as dict
:rtype: Dict[str, Any]
"""
return vars(self)