1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-23 23:34:07 +03:00

Refactor imports and type hints across multiple modules

- Removed unnecessary conditional imports for Django models.
- Updated type hints from 'Model' to 'models.Model' for better clarity and consistency.
- Added missing imports for 'models' in various files to ensure proper type checking.
- Cleaned up import statements by consolidating related imports.
- Enhanced readability and maintainability of the codebase by standardizing import styles.
This commit is contained in:
Adolfo Gómez García
2025-08-10 07:13:04 +02:00
parent 07676fa0f3
commit 2c17f72695
28 changed files with 115 additions and 134 deletions

View File

@@ -35,6 +35,7 @@ import logging
import typing
from django.utils.translation import gettext_lazy as _
from django.db.models import Model
from uds.core import types
from uds.core.util import ensure, ui as ui_utils
@@ -44,9 +45,6 @@ from uds.REST.model import ModelHandler
logger = logging.getLogger(__name__)
if typing.TYPE_CHECKING:
from django.db.models import Model
# Enclosed methods under /item path