mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-09 06:11:54 +02:00
Optimize imports.
This commit is contained in:
parent
9385a2233e
commit
95f844ef67
7 changed files with 9 additions and 11 deletions
|
@ -15,10 +15,8 @@ from map_machine.feature.building import Building, BUILDING_SCALE
|
||||||
from map_machine.feature.crater import Crater
|
from map_machine.feature.crater import Crater
|
||||||
from map_machine.feature.direction import DirectionSector
|
from map_machine.feature.direction import DirectionSector
|
||||||
from map_machine.feature.road import Road, Roads
|
from map_machine.feature.road import Road, Roads
|
||||||
from map_machine.figure import (
|
|
||||||
StyledFigure,
|
|
||||||
)
|
|
||||||
from map_machine.feature.tree import Tree
|
from map_machine.feature.tree import Tree
|
||||||
|
from map_machine.figure import StyledFigure
|
||||||
from map_machine.geometry.flinger import Flinger
|
from map_machine.geometry.flinger import Flinger
|
||||||
from map_machine.map_configuration import DrawingMode, MapConfiguration
|
from map_machine.map_configuration import DrawingMode, MapConfiguration
|
||||||
from map_machine.osm.osm_reader import (
|
from map_machine.osm.osm_reader import (
|
||||||
|
|
|
@ -9,8 +9,8 @@ from typing import Any, Optional
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import svgwrite
|
import svgwrite
|
||||||
from svgwrite import Drawing
|
from svgwrite import Drawing
|
||||||
from svgwrite.text import Text
|
|
||||||
from svgwrite.shapes import Line, Rect
|
from svgwrite.shapes import Line, Rect
|
||||||
|
from svgwrite.text import Text
|
||||||
|
|
||||||
from map_machine.map_configuration import MapConfiguration
|
from map_machine.map_configuration import MapConfiguration
|
||||||
from map_machine.osm.osm_reader import Tags
|
from map_machine.osm.osm_reader import Tags
|
||||||
|
|
|
@ -15,7 +15,6 @@ from map_machine.pictogram.icon import (
|
||||||
from map_machine.pictogram.icon_collection import IconCollection
|
from map_machine.pictogram.icon_collection import IconCollection
|
||||||
from map_machine.workspace import workspace
|
from map_machine.workspace import workspace
|
||||||
|
|
||||||
|
|
||||||
SKIP: bool = True
|
SKIP: bool = True
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,19 +9,19 @@ from typing import Optional
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import svgwrite
|
import svgwrite
|
||||||
|
|
||||||
from map_machine.geometry.boundary_box import BoundaryBox
|
|
||||||
from map_machine.constructor import Constructor
|
from map_machine.constructor import Constructor
|
||||||
|
from map_machine.geometry.boundary_box import BoundaryBox
|
||||||
from map_machine.geometry.flinger import Flinger
|
from map_machine.geometry.flinger import Flinger
|
||||||
from map_machine.pictogram.icon import ShapeExtractor
|
|
||||||
from map_machine.mapper import Map
|
|
||||||
from map_machine.map_configuration import (
|
from map_machine.map_configuration import (
|
||||||
BuildingMode,
|
BuildingMode,
|
||||||
DrawingMode,
|
DrawingMode,
|
||||||
LabelMode,
|
LabelMode,
|
||||||
MapConfiguration,
|
MapConfiguration,
|
||||||
)
|
)
|
||||||
|
from map_machine.mapper import Map
|
||||||
from map_machine.osm.osm_getter import get_osm
|
from map_machine.osm.osm_getter import get_osm
|
||||||
from map_machine.osm.osm_reader import OSMData
|
from map_machine.osm.osm_reader import OSMData
|
||||||
|
from map_machine.pictogram.icon import ShapeExtractor
|
||||||
from map_machine.scheme import Scheme
|
from map_machine.scheme import Scheme
|
||||||
|
|
||||||
doc_path: Path = Path("doc")
|
doc_path: Path = Path("doc")
|
||||||
|
|
|
@ -6,6 +6,7 @@ from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from map_machine.doc.collections import Collection
|
from map_machine.doc.collections import Collection
|
||||||
|
|
||||||
from map_machine.map_configuration import MapConfiguration
|
from map_machine.map_configuration import MapConfiguration
|
||||||
from map_machine.osm.osm_reader import Tags
|
from map_machine.osm.osm_reader import Tags
|
||||||
from map_machine.pictogram.icon import Icon, ShapeExtractor
|
from map_machine.pictogram.icon import Icon, ShapeExtractor
|
||||||
|
|
|
@ -8,13 +8,13 @@ from typing import Optional
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from svgwrite import Drawing
|
from svgwrite import Drawing
|
||||||
|
|
||||||
from map_machine.geometry.boundary_box import BoundaryBox
|
|
||||||
from map_machine.constructor import Constructor
|
from map_machine.constructor import Constructor
|
||||||
|
from map_machine.geometry.boundary_box import BoundaryBox
|
||||||
from map_machine.geometry.flinger import Flinger
|
from map_machine.geometry.flinger import Flinger
|
||||||
from map_machine.pictogram.icon import ShapeExtractor
|
|
||||||
from map_machine.map_configuration import MapConfiguration
|
from map_machine.map_configuration import MapConfiguration
|
||||||
from map_machine.mapper import Map
|
from map_machine.mapper import Map
|
||||||
from map_machine.osm.osm_reader import OSMData, OSMNode, OSMWay
|
from map_machine.osm.osm_reader import OSMData, OSMNode, OSMWay
|
||||||
|
from map_machine.pictogram.icon import ShapeExtractor
|
||||||
from map_machine.scheme import Scheme
|
from map_machine.scheme import Scheme
|
||||||
from map_machine.workspace import Workspace
|
from map_machine.workspace import Workspace
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
from map_machine.constructor import Constructor
|
||||||
from map_machine.figure import Figure
|
from map_machine.figure import Figure
|
||||||
from map_machine.geometry.boundary_box import BoundaryBox
|
from map_machine.geometry.boundary_box import BoundaryBox
|
||||||
from map_machine.geometry.flinger import Flinger
|
from map_machine.geometry.flinger import Flinger
|
||||||
from map_machine.map_configuration import MapConfiguration
|
from map_machine.map_configuration import MapConfiguration
|
||||||
from map_machine.constructor import Constructor
|
|
||||||
from map_machine.osm.osm_reader import OSMData, OSMWay, OSMNode
|
from map_machine.osm.osm_reader import OSMData, OSMWay, OSMNode
|
||||||
from tests import SCHEME, SHAPE_EXTRACTOR
|
from tests import SCHEME, SHAPE_EXTRACTOR
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue