Skip to content

Commit

Permalink
remove unecessary cast to set
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamOrmondroyd committed Jan 25, 2024
1 parent 40cb559 commit d420526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypolychord/polychord.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def run(loglikelihood, nDims, **kwargs):
if 'grade_dims' not in kwargs else
[1.0]*len(kwargs['grade_dims']))

if not set(kwargs.keys()) <= set(default_kwargs.keys()):
if not kwargs.keys() <= default_kwargs.keys():
raise TypeError(f"{__name__} got unknown keyword arguments: "
f"{kwargs.keys() - default_kwargs.keys()}")
default_kwargs.update(kwargs)
Expand Down

0 comments on commit d420526

Please sign in to comment.