aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/db/phenotypes.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py
index be5fb7b..e97322a 100644
--- a/gn3/db/phenotypes.py
+++ b/gn3/db/phenotypes.py
@@ -3,9 +3,16 @@
the db"""
from dataclasses import dataclass, asdict, astuple
-from typing import Any, Optional
+from typing import Any, Dict, Optional
from MySQLdb import escape_string
+from typing_extensions import Protocol
+
+
+class Dataclass(Protocol):
+ """Type Definition for a Dataclass"""
+ __dataclass_fields__: Dict
+
@dataclass(frozen=True)
class Phenotype: