From dfa0259997aaef8723caa0668c5ffc932be170cc Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 14 Feb 2026 16:57:11 -0800 Subject: [PATCH] [examples] clean up imports --- examples/tutorial/basic_shapes.py | 4 +--- examples/tutorial/devices.py | 4 ++-- examples/tutorial/library.py | 8 ++------ examples/tutorial/pather.py | 5 ++--- examples/tutorial/renderpather.py | 3 +-- 5 files changed, 8 insertions(+), 16 deletions(-) diff --git a/examples/tutorial/basic_shapes.py b/examples/tutorial/basic_shapes.py index 87baaf0..5b5aab7 100644 --- a/examples/tutorial/basic_shapes.py +++ b/examples/tutorial/basic_shapes.py @@ -1,11 +1,9 @@ -from collections.abc import Sequence import numpy from numpy import pi from masque import ( - layer_t, Pattern, Label, Port, - Circle, Arc, Polygon, + layer_t, Pattern, Circle, Arc, Polygon, ) import masque.file.gdsii diff --git a/examples/tutorial/devices.py b/examples/tutorial/devices.py index 6b9cfa2..79d318a 100644 --- a/examples/tutorial/devices.py +++ b/examples/tutorial/devices.py @@ -4,8 +4,8 @@ import numpy from numpy import pi from masque import ( - layer_t, Pattern, Ref, Label, Builder, Port, Polygon, - Library, ILibraryView, + layer_t, Pattern, Ref, Builder, Port, Polygon, + Library, ) from masque.utils import ports2data from masque.file.gdsii import writefile, check_valid_names diff --git a/examples/tutorial/library.py b/examples/tutorial/library.py index eab8a12..abfbbf1 100644 --- a/examples/tutorial/library.py +++ b/examples/tutorial/library.py @@ -1,17 +1,13 @@ from typing import Any -from collections.abc import Sequence, Callable 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 -import pcgen import basic_shapes import devices -from devices import ports_to_data, data_to_ports +from devices import data_to_ports from basic_shapes import GDS_OPTS diff --git a/examples/tutorial/pather.py b/examples/tutorial/pather.py index d4831bb..c212bc5 100644 --- a/examples/tutorial/pather.py +++ b/examples/tutorial/pather.py @@ -1,10 +1,9 @@ """ Manual wire routing tutorial: Pather and AutoTool """ -from collections.abc import Callable from numpy import pi -from masque import Pather, RenderPather, Library, Pattern, Port, layer_t, map_layers -from masque.builder.tools import AutoTool, PathTool +from masque import Pather, Library, Pattern, Port, layer_t +from masque.builder.tools import AutoTool, Tool from masque.file.gdsii import writefile from basic_shapes import GDS_OPTS diff --git a/examples/tutorial/renderpather.py b/examples/tutorial/renderpather.py index 3707fc6..87e58f2 100644 --- a/examples/tutorial/renderpather.py +++ b/examples/tutorial/renderpather.py @@ -1,8 +1,7 @@ """ Manual wire routing tutorial: RenderPather an PathTool """ -from collections.abc import Callable -from masque import RenderPather, Library, Pattern, Port, layer_t, map_layers +from masque import RenderPather, Library from masque.builder.tools import PathTool from masque.file.gdsii import writefile