Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq committed Jan 16, 2024
1 parent 7ed2b82 commit 46e1f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/flwr/common/metricsrecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def add_metrics(self, metrics_dict: Dict[str, Union[Scalar, ScalarList]]) -> Non
This not implemented as a constructor so we can cleanly create and empyt
MetricsRecord object.
"""
if any(not (k, str) for k in metrics_dict.keys()):
if any(not isinstance(k, str) for k in metrics_dict.keys()):
raise TypeError(f"Not all keys are of valide type. Expected {str}")

def is_valid(value: Scalar) -> None:
Expand Down

0 comments on commit 46e1f3a

Please sign in to comment.