Skip to content

Commit

Permalink
Merge pull request #446 from powerapi-ng/refactor/cleanup-async
Browse files Browse the repository at this point in the history
refactor: Cleanup unused `asyncio` related code
  • Loading branch information
gfieni authored Oct 17, 2024
2 parents 42f7048 + bd7e9d8 commit f40700a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions src/powerapi/database/base_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit f40700a

Please sign in to comment.