mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.02k stars 158 forks source link

#390 Add Python 3.11 support #391

Closed arrrrrmin closed 1 year ago

arrrrrmin commented 1 year ago

RAPLFile dataclass is required to use fields default_factory in Python version >= 3.11. Believe the corresponding change, is this one: whatsnew/3.11#dataclasses.

All test but 2 pass for both 3.10 and 3.11