Update condition.py error message (#214)

* minor update in the ValueError message
This commit is contained in:
Dario Coscia
2023-11-22 14:27:18 +01:00
committed by GitHub
parent 9e87d61349
commit 6c4664227a

View File

@@ -69,7 +69,7 @@ class Condition:
if len(args) != 0:
raise ValueError(
'Condition takes only the following keyword arguments: {`input_points`, `output_points`, `location`, `function`, `data_weight`}.'
f'Condition takes only the following keyword arguments: {Condition.__slots__}.'
)
if (sorted(kwargs.keys()) != sorted(['input_points', 'output_points'])