From 0a22567a3e3c54a8442c5d5c74034a7304119ef9 Mon Sep 17 00:00:00 2001 From: Salman Ashraf Date: Wed, 10 Jul 2024 10:34:46 +0000 Subject: [PATCH] Fix code format and imports --- api/models/agreement_signature.py | 6 +++--- api/models/contributor.py | 2 +- api/models/fruit.py | 2 +- api/models/repository.py | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/models/agreement_signature.py b/api/models/agreement_signature.py index f471144..445401c 100644 --- a/api/models/agreement_signature.py +++ b/api/models/agreement_signature.py @@ -6,16 +6,16 @@ import typing as t from django.db import models -from .contributor import Contributor from django.utils.translation import gettext_lazy as _ +from .contributor import Contributor + if t.TYPE_CHECKING: - from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover + from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover else: TypedModelMeta = object - class AgreementSignature(models.Model): """Signature of a contributor signing the agreement""" diff --git a/api/models/contributor.py b/api/models/contributor.py index 9fe9ab3..e3e82e2 100644 --- a/api/models/contributor.py +++ b/api/models/contributor.py @@ -9,7 +9,7 @@ from django.utils.translation import gettext_lazy as _ if t.TYPE_CHECKING: - from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover + from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover else: TypedModelMeta = object diff --git a/api/models/fruit.py b/api/models/fruit.py index 6957195..0292f20 100644 --- a/api/models/fruit.py +++ b/api/models/fruit.py @@ -9,7 +9,7 @@ from django.utils.translation import gettext_lazy as _ if t.TYPE_CHECKING: - from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover + from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover else: TypedModelMeta = object diff --git a/api/models/repository.py b/api/models/repository.py index 8c93f6e..334d1c3 100644 --- a/api/models/repository.py +++ b/api/models/repository.py @@ -6,16 +6,16 @@ import typing as t from django.db import models -from .contributor import Contributor from django.utils.translation import gettext_lazy as _ +from .contributor import Contributor + if t.TYPE_CHECKING: - from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover + from django_stubs_ext.db.models import TypedModelMeta # pragma: no cover else: TypedModelMeta = object - class Repository(models.Model): """A repository to contribute to"""