Skip to content

Commit

Permalink
refactor: let ClientStore accept any Connection class
Browse files Browse the repository at this point in the history
  • Loading branch information
thegamecracks committed Mar 11, 2024
1 parent 7d6686c commit dfe73fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dumdum/client/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
from typing import Any, Iterator, Self, TypeVar

from dumdum.appdirs import APP_DIRS
from dumdum.db import SQLiteConnection, run_migrations
from dumdum.db import Connection, SQLiteConnection, run_migrations

T = TypeVar("T")


class ClientStore:
def __init__(self, conn: SQLiteConnection) -> None:
def __init__(self, conn: Connection) -> None:
self._conn = conn

@contextlib.contextmanager
Expand Down

0 comments on commit dfe73fb

Please sign in to comment.