Documentation changes

This commit is contained in:
Ege Emir Özkan
2020-08-23 15:46:24 +03:00
parent dbaf88212a
commit a4693c3170

View File

@@ -15,7 +15,7 @@ T = TypeVar('T')
class HeterogeneousCollectionError(Exception):
"""
:raises if the passed collection is not homogeneous.
:raise : if the passed collection is not homogeneous.
ie: If a List or Tuple has elements of multiple
types.
"""
@@ -106,8 +106,8 @@ def create_many(objects: Union[List[T], Tuple[T]], protect_memory: bool = True)
def copy_many(objects: Union[List[T], Tuple[T]], db_name: str, protect_memory: bool = True) -> None:
"""
Copy many records to another database, from
their original database to new database,
do not delete old records.
their original database to new database, do
not delete old records.
:param objects: Objects to copy.
:param db_name: Name of the new database.