Skip to content

Commit

Permalink
refactor(utils): Update docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Investigamer <[email protected]>
  • Loading branch information
Investigamer committed Feb 15, 2024
1 parent 1ca0d8c commit 61ff841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def downscale_image(path: Path, **kwargs) -> bool:
"""Downscale an image to max width of MAX_WIDTH.
"""Downscale an image using provided keyword arguments.
Args:
path: Path to the image.
Expand Down
1 change: 1 addition & 0 deletions src/utils/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class DictSchema(Schema):
"""Dictionary schema class."""

def __new__(cls, **data):
"""Return new instance as a dictionary."""
new = super().__new__(cls)
new.__init__(**data)
return new.model_dump()

0 comments on commit 61ff841

Please sign in to comment.