docs: update docstrings (#565)

This commit is contained in:
cachho
2023-09-07 02:04:44 +02:00
committed by GitHub
parent 4754372fcd
commit 1ac8aef4de
25 changed files with 736 additions and 298 deletions

View File

@@ -1,3 +1,5 @@
from typing import Any, Dict
from embedchain.helper_classes.json_serializable import JSONSerializable
@@ -7,7 +9,13 @@ class BaseConfig(JSONSerializable):
"""
def __init__(self):
"""Initializes a configuration class for a class."""
pass
def as_dict(self):
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)