Skip to content

Commit

Permalink
refactor: return None from pickle_dump();
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Jul 4, 2024
1 parent 4015193 commit 8993137
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pypots/data/saving/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
# License: BSD-3-Clause

import pickle
from typing import Optional

from ...utils.file import extract_parent_dir, create_dir_if_not_exist
from ...utils.logging import logger


def pickle_dump(data: object, path: str) -> Optional[str]:
def pickle_dump(data: object, path: str) -> None:
"""Pickle the given object.
Parameters
Expand All @@ -39,7 +38,6 @@ def pickle_dump(data: object, path: str) -> Optional[str]:
)
return None
logger.info(f"Successfully saved to {path}")
return path


def pickle_load(path: str) -> object:
Expand Down

0 comments on commit 8993137

Please sign in to comment.