Skip to content

Commit

Permalink
Add condition for deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Nov 5, 2024
1 parent aa831a5 commit ace8e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def instance_from_dict(d, id=None, single=None, check_storages=True):
Whether to check if the instance already exists in storages
specified in `dlite.storage_path`.
"""
if single:
if single is not None:
dlite.deprecation_warning(
"0.7.0",
"Argument `single` is deprecated and not used. Single/multi-"
Expand Down

0 comments on commit ace8e1f

Please sign in to comment.