make imports work again
This commit is contained in:
parent
dd239d0b27
commit
db86c9f9bb
4 changed files with 6 additions and 6 deletions
|
@ -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):
|
||||
|
|
2
src/c3nav/mapdata/utils/cache/changes.py
vendored
2
src/c3nav/mapdata/utils/cache/changes.py
vendored
|
@ -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
|
||||
|
||||
|
|
2
src/c3nav/mapdata/utils/cache/maphistory.py
vendored
2
src/c3nav/mapdata/utils/cache/maphistory.py
vendored
|
@ -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
|
||||
|
||||
|
||||
|
|
3
src/c3nav/mapdata/utils/cache/types.py
vendored
Normal file
3
src/c3nav/mapdata/utils/cache/types.py
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
from typing import TypeAlias
|
||||
|
||||
MapUpdateTuple: TypeAlias = tuple[int, int]
|
Loading…
Add table
Add a link
Reference in a new issue