From 5b6ba06785613457abf5abaf2635543bf453febe Mon Sep 17 00:00:00 2001 From: Guillaume Fieni Date: Thu, 17 Oct 2024 15:20:02 +0200 Subject: [PATCH 1/2] refactor(database/base): Remove deprecated `is_async` attribute --- src/powerapi/database/base_db.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/powerapi/database/base_db.py b/src/powerapi/database/base_db.py index 61bacc9b..624fdec7 100644 --- a/src/powerapi/database/base_db.py +++ b/src/powerapi/database/base_db.py @@ -73,15 +73,13 @@ class BaseDB: This class define the interface needed to fetch/save reports from/to a database. """ - def __init__(self, report_type: type[Report], exceptions: list[type[Exception]] = None, is_async: bool = False): + def __init__(self, report_type: type[Report], exceptions: list[type[Exception]] = None): """ :param report_type: The type of report expected :param exceptions: List of exception type raised by the database module - :param is_async: Whether the database use asyncio or not """ self.report_type = report_type self.exceptions = exceptions or [] - self.is_async = is_async def connect(self): """ From bd7e9d80f630f050e0219dcbdae6eb0a5e9fb94b Mon Sep 17 00:00:00 2001 From: Guillaume Fieni Date: Thu, 17 Oct 2024 15:22:06 +0200 Subject: [PATCH 2/2] build(pyproject): Remove unused `asyncio` pytest plugin --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c6cc053a..9d7a12c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,6 @@ dependencies = [ [project.optional-dependencies] test = [ "pytest >= 7.0.1", - "pytest-asyncio >= 0.20.1", "pytest-timeout >= 1.4.2", "pytest-cov >= 4.0.0", "mock >= 4.0.3"