Skip to content

Commit

Permalink
Fix unneded None
Browse files Browse the repository at this point in the history
  • Loading branch information
gkirgizov committed Nov 9, 2022
1 parent bf5649b commit 07da88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedot/core/serializers/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def default_save(obj: Any, json_file_path: Optional[Union[str, os.PathLike]] = N
return None


def default_load(json_str_or_file_path: Optional[Union[str, os.PathLike]] = None) -> Any:
def default_load(json_str_or_file_path: Union[str, os.PathLike]) -> Any:
""" Default load from json using Serializer """
def load_as_file_path():
with open(json_str_or_file_path, mode='r') as json_file:
Expand Down

0 comments on commit 07da88e

Please # to comment.