linter stuff
This commit is contained in:
parent
11a631136b
commit
c3ce665562
4 changed files with 5 additions and 4 deletions
|
@ -13,7 +13,8 @@ from django.db.models import Q
|
|||
from django.forms import (BooleanField, CharField, ChoiceField, DecimalField, Form, JSONField, ModelChoiceField,
|
||||
ModelForm, MultipleChoiceField, Select, ValidationError)
|
||||
from django.forms.widgets import HiddenInput
|
||||
from django.utils.translation import gettext_lazy as _, get_language
|
||||
from django.utils.translation import get_language
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from shapely.geometry.geo import mapping
|
||||
|
||||
from c3nav.editor.models import ChangeSet, ChangeSetUpdate
|
||||
|
|
|
@ -115,4 +115,4 @@ def can_access_geometry(request, obj):
|
|||
return obj.base_mapdata_accessible or request.user_permissions.can_access_base_mapdata
|
||||
elif isinstance(obj, (Building, Door)):
|
||||
return request.user_permissions.can_access_base_mapdata
|
||||
return True
|
||||
return True
|
||||
|
|
|
@ -8,7 +8,7 @@ from typing import Optional
|
|||
import numpy as np
|
||||
from django.conf import settings
|
||||
from scipy.interpolate import NearestNDInterpolator
|
||||
from shapely import prepared, Geometry, MultiPolygon
|
||||
from shapely import Geometry, MultiPolygon, prepared
|
||||
from shapely.geometry import GeometryCollection
|
||||
from shapely.ops import unary_union
|
||||
from shapely.prepared import PreparedGeometry
|
||||
|
|
2
src/c3nav/mapdata/utils/cache/package.py
vendored
2
src/c3nav/mapdata/utils/cache/package.py
vendored
|
@ -4,7 +4,7 @@ from collections import namedtuple
|
|||
from io import BytesIO
|
||||
from pathlib import Path
|
||||
from tarfile import TarFile, TarInfo
|
||||
from typing import BinaryIO, Self, Optional
|
||||
from typing import BinaryIO, Optional, Self
|
||||
|
||||
from pyzstd import CParameter, ZstdError, ZstdFile
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue