[examples] clean up imports

This commit is contained in:
Jan Petykiewicz 2026-02-14 16:57:11 -08:00
commit dfa0259997
5 changed files with 8 additions and 16 deletions

View file

@ -1,11 +1,9 @@
from collections.abc import Sequence
import numpy import numpy
from numpy import pi from numpy import pi
from masque import ( from masque import (
layer_t, Pattern, Label, Port, layer_t, Pattern, Circle, Arc, Polygon,
Circle, Arc, Polygon,
) )
import masque.file.gdsii import masque.file.gdsii

View file

@ -4,8 +4,8 @@ import numpy
from numpy import pi from numpy import pi
from masque import ( from masque import (
layer_t, Pattern, Ref, Label, Builder, Port, Polygon, layer_t, Pattern, Ref, Builder, Port, Polygon,
Library, ILibraryView, Library,
) )
from masque.utils import ports2data from masque.utils import ports2data
from masque.file.gdsii import writefile, check_valid_names from masque.file.gdsii import writefile, check_valid_names

View file

@ -1,17 +1,13 @@
from typing import Any from typing import Any
from collections.abc import Sequence, Callable
from pprint import pformat from pprint import pformat
import numpy
from numpy import pi
from masque import Pattern, Builder, LazyLibrary from masque import Builder, LazyLibrary
from masque.file.gdsii import writefile, load_libraryfile from masque.file.gdsii import writefile, load_libraryfile
import pcgen
import basic_shapes import basic_shapes
import devices import devices
from devices import ports_to_data, data_to_ports from devices import data_to_ports
from basic_shapes import GDS_OPTS from basic_shapes import GDS_OPTS

View file

@ -1,10 +1,9 @@
""" """
Manual wire routing tutorial: Pather and AutoTool Manual wire routing tutorial: Pather and AutoTool
""" """
from collections.abc import Callable
from numpy import pi from numpy import pi
from masque import Pather, RenderPather, Library, Pattern, Port, layer_t, map_layers from masque import Pather, Library, Pattern, Port, layer_t
from masque.builder.tools import AutoTool, PathTool from masque.builder.tools import AutoTool, Tool
from masque.file.gdsii import writefile from masque.file.gdsii import writefile
from basic_shapes import GDS_OPTS from basic_shapes import GDS_OPTS

View file

@ -1,8 +1,7 @@
""" """
Manual wire routing tutorial: RenderPather an PathTool Manual wire routing tutorial: RenderPather an PathTool
""" """
from collections.abc import Callable from masque import RenderPather, Library
from masque import RenderPather, Library, Pattern, Port, layer_t, map_layers
from masque.builder.tools import PathTool from masque.builder.tools import PathTool
from masque.file.gdsii import writefile from masque.file.gdsii import writefile