Skip to content

Commit

Permalink
Remove stray imports, fix 1 error
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Dec 11, 2024
1 parent 496be18 commit 3b0f61a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions gramps_webapi/api/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@
from gramps.gen.utils.grampslocale import GrampsLocale
from gramps.plugins.db.dbapi.dbapi import DBAPI
from marshmallow import RAISE
from sklearn import tree
from torch import Value
from webargs.flaskparser import FlaskParser
from werkzeug.exceptions import HTTPException
from werkzeug.security import safe_join
Expand Down
2 changes: 1 addition & 1 deletion gramps_webapi/dbloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_postgres_credentials(directory, username, password):
class WebDbSessionManager:
"""Session manager derived from `CLIDbLoader` and `CLIManager`."""

def __init__(self, dbstate: DbState, user: UserBase, user_id: str):
def __init__(self, dbstate: DbState, user: UserBase, user_id: str | None):
"""Initialize self."""
self.dbstate = dbstate
self._pmgr = BasePluginManager.get_instance()
Expand Down

0 comments on commit 3b0f61a

Please sign in to comment.