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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user