devicehub-django/device/environmental_impact/calculator.py

11 lines
213 B
Python
Raw Normal View History

from dataclasses import dataclass
@dataclass
class EnvironmentalImpact:
carbon_saved: float
def get_device_environmental_impact() -> EnvironmentalImpact:
return EnvironmentalImpact(carbon_saved=225.0)