aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/dictify.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/gn_auth/auth/dictify.py b/gn_auth/auth/dictify.py
deleted file mode 100644
index f9337f6..0000000
--- a/gn_auth/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()