diff --git a/menu_from_project/logic/layer_load.py b/menu_from_project/logic/layer_load.py index bd0eac1..39e2e1b 100644 --- a/menu_from_project/logic/layer_load.py +++ b/menu_from_project/logic/layer_load.py @@ -173,7 +173,10 @@ def addLayer( return newLayer, relationsToBuild else: - self.log("Layer {} not found. Can't add layer to QGIS.".format(layerId), indent=loop) + self.log( + "Layer {} not found. Can't add layer to QGIS.".format(layerId), + indent=loop, + ) return None, None diff --git a/menu_from_project/logic/project_read.py b/menu_from_project/logic/project_read.py index 4534c63..16fa451 100644 --- a/menu_from_project/logic/project_read.py +++ b/menu_from_project/logic/project_read.py @@ -2,7 +2,6 @@ from pathlib import Path from typing import Dict, Optional, Tuple - # PyQGIS from qgis.core import QgsMapLayerType, QgsMessageLog, QgsWkbTypes from qgis.PyQt import QtXml diff --git a/menu_from_project/logic/qgs_manager.py b/menu_from_project/logic/qgs_manager.py index 62bece8..77fa51b 100644 --- a/menu_from_project/logic/qgs_manager.py +++ b/menu_from_project/logic/qgs_manager.py @@ -298,7 +298,9 @@ def getQgsDoc(self, uri: str) -> Tuple[QtXml.QDomDocument, str]: return doc, project_path - def getMapLayerDomFromQgs(self, fileName: str, layerId: str) -> Optional[QtXml.QDomNode]: + def getMapLayerDomFromQgs( + self, fileName: str, layerId: str + ) -> Optional[QtXml.QDomNode]: """Return the maplayer node in a project filepath given a maplayer ID. :param fileName: The project filepath on the filesystem. diff --git a/menu_from_project/logic/xml_utils.py b/menu_from_project/logic/xml_utils.py index 47bd466..7b540d2 100644 --- a/menu_from_project/logic/xml_utils.py +++ b/menu_from_project/logic/xml_utils.py @@ -1,4 +1,3 @@ - from typing import Optional # PyQGIS