python-genshin-artifact/python_genshin_artifact/calculator.py
洛水居室 aa9049f851
🐛 Fix bug
2023-05-16 17:25:12 +08:00

10 lines
384 B
Python

from genshin_artifact_function import get_damage_analysis as _get_damage_analysis
from python_genshin_artifact.models.calculator import CalculatorConfig
from python_genshin_artifact.models.damage.analysis import DamageAnalysis
def get_damage_analysis(value: CalculatorConfig) -> DamageAnalysis:
ret = _get_damage_analysis(value.json())
return DamageAnalysis.parse_raw(ret)