diff options
| author | John Nduli | 2024-10-18 15:06:36 +0300 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2024-10-18 09:28:40 -0500 |
| commit | 86b81be8c67cf82e8f26a7f84cbdc5df7198e214 (patch) | |
| tree | 7e27fe0d5876d6c473b61bcacf5e73a9a8d83a39 /gn3/auth/dictify.py | |
| parent | 27531c0a1350097ca36a555b8546bc282948de04 (diff) | |
| download | genenetwork3-86b81be8c67cf82e8f26a7f84cbdc5df7198e214.tar.gz | |
refactor: replace gn3.auth.db with gn3.sqlite_db_utils and drop all refs to gn3.auth
Diffstat (limited to 'gn3/auth/dictify.py')
| -rw-r--r-- | gn3/auth/dictify.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gn3/auth/dictify.py b/gn3/auth/dictify.py deleted file mode 100644 index f9337f6..0000000 --- a/gn3/auth/dictify.py +++ /dev/null @@ -1,12 +0,0 @@ -"""Module for dictifying objects""" - -from typing import Any, Protocol - -class Dictifiable(Protocol):# pylint: disable=[too-few-public-methods] - """Type annotation for generic object with a `dictify` method.""" - def dictify(self): - """Convert the object to a dict""" - -def dictify(obj: Dictifiable) -> dict[str, Any]: - """Turn `obj` to a dict representation.""" - return obj.dictify() |
