make imports work again

This commit is contained in:
Laura Klünder 2025-04-17 18:27:48 +02:00
parent dd239d0b27
commit db86c9f9bb
4 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,6 @@ import time
from contextlib import contextmanager, suppress, nullcontext
from functools import cached_property
from sqlite3 import DatabaseError
from typing import TypeAlias
from django.conf import settings
from django.core.cache import cache
@ -18,9 +17,7 @@ from shapely.ops import unary_union
from c3nav.mapdata.tasks import process_map_updates, delete_map_cache_key
from c3nav.mapdata.utils.cache.changes import GeometryChangeTracker
from c3nav.mapdata.utils.cache.local import per_request_cache
MapUpdateTuple: TypeAlias = tuple[int, int]
from c3nav.mapdata.utils.cache.types import MapUpdateTuple
class MapUpdate(models.Model):

View file

@ -3,7 +3,7 @@ import os
from django.db.models.signals import m2m_changed, post_delete
from shapely.ops import unary_union
from c3nav.mapdata.models.update import MapUpdateTuple
from c3nav.mapdata.utils.cache.types import MapUpdateTuple
from c3nav.mapdata.utils.cache.maphistory import MapHistory
from c3nav.mapdata.utils.models import get_submodels

View file

@ -6,7 +6,7 @@ from shapely import Polygon, MultiPolygon
import numpy as np
from c3nav.mapdata.models.update import MapUpdateTuple
from c3nav.mapdata.utils.cache.types import MapUpdateTuple
from c3nav.mapdata.utils.cache.indexed import LevelGeometryIndexed

View file

@ -0,0 +1,3 @@
from typing import TypeAlias
MapUpdateTuple: TypeAlias = tuple[int, int]