Skip to content

Commit

Permalink
Merge branch 'main' into add-linting-gh-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Lindholm committed Aug 29, 2023
2 parents 4f71fc3 + 72d9bef commit fc3cb0f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions acacore/database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ def fetchall(self) -> Generator[dict[str, Any], None, None]:
def fetchall(self, model: Type[M]) -> Generator[M, None, None]:
...

def fetchall(
self,
model: Optional[Type[M]] = None,
) -> Generator[Union[dict[str, Any], M], None, None]:
def fetchall(self, model: Optional[Type[M]] = None) -> Generator[Union[dict[str, Any], M], None, None]:
"""
Fetch all results from the cursor and return them as dicts, with the columns' names/aliases used as keys.
Expand Down Expand Up @@ -286,12 +283,7 @@ def select(

return Cursor(self.connection.execute(statement, parameters), columns, self)

def insert(
self,
entry: dict[str, Any],
exist_ok: bool = False,
replace: bool = False,
):
def insert(self, entry: dict[str, Any], exist_ok: bool = False, replace: bool = False):
"""
Insert a row in the table. Existing rows with matching keys can be ignored or replaced.
Expand Down

0 comments on commit fc3cb0f

Please sign in to comment.