Skip to content

Commit 63cfc02

Browse files
committed
refactor(database/prometheus): Remove redundant ABC inheritance
The `Collector` abstract class from the Prometheus client already uses `ABCMeta` as its metaclass, so having `ReportCollector` inheriting it as well can cause a metaclass conflict on some Python versions/builds.
1 parent 97fbed3 commit 63cfc02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/powerapi/database/prometheus/collectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
Collector = None
4848

4949

50-
class ReportCollector(Collector, ABC):
50+
class ReportCollector(Collector):
5151
"""
5252
Base Report Collector class.
5353
"""

0 commit comments

Comments
 (0)