Arch: linting multiple imports on one line (#9281)

This commit is contained in:
luzpaz
2023-04-18 10:23:44 -04:00
committed by GitHub
parent 8a762a8637
commit bc1f217664
33 changed files with 200 additions and 64 deletions

View File

@@ -21,7 +21,11 @@
import os
import FreeCAD, Draft, ArchComponent, DraftVecUtils, ArchCommands
import FreeCAD
import ArchCommands
import ArchComponent
import Draft
import DraftVecUtils
import ArchWindowPresets
from FreeCAD import Units
from FreeCAD import Vector
@@ -524,7 +528,8 @@ class _CommandWindow:
path = self.librarypresets[i-len(WindowPresets)][1]
if path.lower().endswith(".fcstd"):
try:
import zipfile,tempfile
import tempfile
import zipfile
except Exception:
pass
else:
@@ -667,7 +672,9 @@ class _Window(ArchComponent.Component):
def buildShapes(self,obj):
import Part,DraftGeomUtils,math
import Part
import DraftGeomUtils
import math
self.sshapes = []
self.vshapes = []
shapes = []
@@ -877,7 +884,9 @@ class _Window(ArchComponent.Component):
self.boxes = clonedProxy.boxes
return
import Part,DraftGeomUtils,math
import Part
import DraftGeomUtils
import math
pl = obj.Placement
base = None
self.sshapes = []