Commit f30087b6 authored by payno's avatar payno
Browse files

[MetricSystem] fix typo: missing enum in "from_value" function

parent b606abf1
......@@ -98,7 +98,7 @@ class MetricSystem(_Enum):
if isinstance(value, str):
return cls.from_str(value=value)
else:
_Enum.from_value(value=value)
return _Enum.from_value(value=value)
@classmethod
def from_str(cls, value: str):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment