Skip to content

Commit 042a1c5

Browse files
committed
Fix cosmetic issues.
1 parent d757bd4 commit 042a1c5

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

PyFunceble/data/alembic/mysql/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
from sqlalchemy import engine_from_config, pool
5858

5959
import PyFunceble.cli.facility
60+
import PyFunceble.database.sqlalchemy.all_schemas
6061
import PyFunceble.facility
61-
from PyFunceble.database.sqlalchemy.all_schemas import Continue, Inactive, WhoisRecord
6262
from PyFunceble.database.sqlalchemy.base_schema import SchemaBase
6363

6464
config = context.config

PyFunceble/data/alembic/postgresql/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
from sqlalchemy import engine_from_config, pool
5858

5959
import PyFunceble.cli.facility
60+
import PyFunceble.database.sqlalchemy.all_schemas
6061
import PyFunceble.facility
61-
from PyFunceble.database.sqlalchemy.all_schemas import Continue, Inactive, WhoisRecord
6262
from PyFunceble.database.sqlalchemy.base_schema import SchemaBase
6363

6464
config = context.config

PyFunceble/dataset/autocontinue/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SQLDBContinueDataset(SQLDBDatasetBase, ContinueDatasetBase):
7070

7171
@SQLDBDatasetBase.execute_if_authorized(None)
7272
# pylint: disable=arguments-differ
73-
def cleanup(self, *, session_id: str) -> "MariaDBContinueDataset":
73+
def cleanup(self, *, session_id: str) -> "SQLDBContinueDataset":
7474
"""
7575
Cleanups the dataset. Meaning that we delete every entries which are
7676
needed anymore.

PyFunceble/dataset/sql_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_content(self) -> Generator[dict, None, None]:
121121
yield row
122122

123123
@DBDatasetBase.execute_if_authorized(None)
124-
def update(self, row, *, ignore_if_exist: bool = False) -> "MariaDBDatasetBase":
124+
def update(self, row, *, ignore_if_exist: bool = False) -> "SQLDBDatasetBase":
125125
"""
126126
Adds the given dataset into the database if it does not exists.
127127
Update otherwise.
@@ -168,7 +168,7 @@ def update(self, row, *, ignore_if_exist: bool = False) -> "MariaDBDatasetBase":
168168

169169
@DBDatasetBase.execute_if_authorized(None)
170170
@ensure_orm_obj_is_given
171-
def remove(self, row) -> "MariaDBDatasetBase":
171+
def remove(self, row) -> "SQLDBDatasetBase":
172172
"""
173173
Removes the given dataset from the database.
174174
@@ -276,7 +276,7 @@ def get_existing_row(self, row):
276276

277277
@DBDatasetBase.execute_if_authorized(None)
278278
@ensure_orm_obj_is_given
279-
def add(self, row) -> "MariaDBDatasetBase":
279+
def add(self, row) -> "SQLDBDatasetBase":
280280
"""
281281
Adds the given dataset into the database.
282282

PyFunceble/dataset/whois/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_content(self) -> Generator[dict, None, None]:
121121
@SQLDBDatasetBase.execute_if_authorized(None)
122122
def update(
123123
self, row: Union[dict, WhoisRecord], *, ignore_if_exist: bool = False
124-
) -> "MariaDBWhoisDataset":
124+
) -> "SQLDBWhoisDataset":
125125
"""
126126
Adds the given dataset into the database if it does not exists.
127127
Update otherwise.
@@ -155,7 +155,7 @@ def update(
155155
return self
156156

157157
@SQLDBDatasetBase.execute_if_authorized(None)
158-
def cleanup(self) -> "MariaDBWhoisDataset":
158+
def cleanup(self) -> "SQLDBWhoisDataset":
159159
"""
160160
Cleanups the dataset. Meaning that we delete every entries which are
161161
in the past.

tests/dataset/test_db_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def test_get_filtered_row(self) -> None:
210210
"""
211211

212212
self.dataset.authorized = True
213+
# pylint: disable=invalid-name
213214
self.dataset.FIELDS = ["hello", "world", "fun", "state"]
214215
self.dataset.COMPARISON_FIELDS = ["hello"]
215216

0 commit comments

Comments
 (0)