From 865c3b2683c1697981989edde69558103115db7d Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 12 Mar 2024 00:40:03 +0300 Subject: Remove unused imports. Signed-off-by: Munyoki Kilyungi --- gn_auth/auth/authorisation/data/genotypes.py | 1 - gn_auth/auth/authorisation/data/mrna.py | 1 - gn_auth/auth/authorisation/data/phenotypes.py | 1 - gn_auth/auth/authorisation/privileges.py | 2 +- gn_auth/auth/authorisation/roles/models.py | 2 +- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gn_auth/auth/authorisation/data/genotypes.py b/gn_auth/auth/authorisation/data/genotypes.py index e0ffdc8..bde045b 100644 --- a/gn_auth/auth/authorisation/data/genotypes.py +++ b/gn_auth/auth/authorisation/data/genotypes.py @@ -5,7 +5,6 @@ from typing import Iterable from MySQLdb.cursors import DictCursor -from gn_auth.auth.dictify import dictify from gn_auth.auth.db import mariadb as gn3db from gn_auth.auth.db import sqlite3 as authdb diff --git a/gn_auth/auth/authorisation/data/mrna.py b/gn_auth/auth/authorisation/data/mrna.py index e65fbd0..60470a7 100644 --- a/gn_auth/auth/authorisation/data/mrna.py +++ b/gn_auth/auth/authorisation/data/mrna.py @@ -4,7 +4,6 @@ from dataclasses import asdict from typing import Iterable from MySQLdb.cursors import DictCursor -from gn_auth.auth.dictify import dictify from gn_auth.auth.db import sqlite3 as authdb from gn_auth.auth.db import mariadb as gn3db diff --git a/gn_auth/auth/authorisation/data/phenotypes.py b/gn_auth/auth/authorisation/data/phenotypes.py index 3baac75..0a76237 100644 --- a/gn_auth/auth/authorisation/data/phenotypes.py +++ b/gn_auth/auth/authorisation/data/phenotypes.py @@ -5,7 +5,6 @@ from typing import Any, Iterable from MySQLdb.cursors import DictCursor -from gn_auth.auth.dictify import dictify from gn_auth.auth.db import sqlite3 as authdb from gn_auth.auth.db import mariadb as gn3db diff --git a/gn_auth/auth/authorisation/privileges.py b/gn_auth/auth/authorisation/privileges.py index 99f41fc..fabab65 100644 --- a/gn_auth/auth/authorisation/privileges.py +++ b/gn_auth/auth/authorisation/privileges.py @@ -1,6 +1,6 @@ """Handle privileges""" from dataclasses import dataclass -from typing import Any, Iterable +from typing import Iterable from ..db import sqlite3 as db from ..authentication.users import User diff --git a/gn_auth/auth/authorisation/roles/models.py b/gn_auth/auth/authorisation/roles/models.py index 74f9e64..5d52be0 100644 --- a/gn_auth/auth/authorisation/roles/models.py +++ b/gn_auth/auth/authorisation/roles/models.py @@ -1,7 +1,7 @@ """Handle management of roles""" from uuid import UUID, uuid4 from functools import reduce -from typing import Any, Sequence, Iterable, NamedTuple +from dataclasses import dataclass, asdict from typing import Any, Sequence, Iterable -- cgit v1.2.3