Optimize imports.

This commit is contained in:
Sergey Vartanov 2022-05-21 00:00:47 +03:00
parent 9385a2233e
commit 95f844ef67
7 changed files with 9 additions and 11 deletions

View file

@ -15,10 +15,8 @@ from map_machine.feature.building import Building, BUILDING_SCALE
from map_machine.feature.crater import Crater
from map_machine.feature.direction import DirectionSector
from map_machine.feature.road import Road, Roads
from map_machine.figure import (
StyledFigure,
)
from map_machine.feature.tree import Tree
from map_machine.figure import StyledFigure
from map_machine.geometry.flinger import Flinger
from map_machine.map_configuration import DrawingMode, MapConfiguration
from map_machine.osm.osm_reader import (

View file

@ -9,8 +9,8 @@ from typing import Any, Optional
import numpy as np
import svgwrite
from svgwrite import Drawing
from svgwrite.text import Text
from svgwrite.shapes import Line, Rect
from svgwrite.text import Text
from map_machine.map_configuration import MapConfiguration
from map_machine.osm.osm_reader import Tags

View file

@ -15,7 +15,6 @@ from map_machine.pictogram.icon import (
from map_machine.pictogram.icon_collection import IconCollection
from map_machine.workspace import workspace
SKIP: bool = True

View file

@ -9,19 +9,19 @@ from typing import Optional
import numpy as np
import svgwrite
from map_machine.geometry.boundary_box import BoundaryBox
from map_machine.constructor import Constructor
from map_machine.geometry.boundary_box import BoundaryBox
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 (
BuildingMode,
DrawingMode,
LabelMode,
MapConfiguration,
)
from map_machine.mapper import Map
from map_machine.osm.osm_getter import get_osm
from map_machine.osm.osm_reader import OSMData
from map_machine.pictogram.icon import ShapeExtractor
from map_machine.scheme import Scheme
doc_path: Path = Path("doc")

View file

@ -6,6 +6,7 @@ from pathlib import Path
from typing import Optional
from map_machine.doc.collections import Collection
from map_machine.map_configuration import MapConfiguration
from map_machine.osm.osm_reader import Tags
from map_machine.pictogram.icon import Icon, ShapeExtractor

View file

@ -8,13 +8,13 @@ from typing import Optional
import numpy as np
from svgwrite import Drawing
from map_machine.geometry.boundary_box import BoundaryBox
from map_machine.constructor import Constructor
from map_machine.geometry.boundary_box import BoundaryBox
from map_machine.geometry.flinger import Flinger
from map_machine.pictogram.icon import ShapeExtractor
from map_machine.map_configuration import MapConfiguration
from map_machine.mapper import Map
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.workspace import Workspace

View file

@ -1,10 +1,10 @@
import numpy as np
from map_machine.constructor import Constructor
from map_machine.figure import Figure
from map_machine.geometry.boundary_box import BoundaryBox
from map_machine.geometry.flinger import Flinger
from map_machine.map_configuration import MapConfiguration
from map_machine.constructor import Constructor
from map_machine.osm.osm_reader import OSMData, OSMWay, OSMNode
from tests import SCHEME, SHAPE_EXTRACTOR