import Sequence et al from collections.abc not typing

This commit is contained in:
Jan Petykiewicz 2024-07-28 19:33:16 -07:00
commit 6ec94fb3c3
28 changed files with 45 additions and 28 deletions

View file

@ -1,4 +1,4 @@
from typing import Sequence
from collections.abc import Sequence
import numpy
from numpy import pi

View file

@ -1,4 +1,4 @@
from typing import Sequence, Mapping
from collections.abc import Sequence, Mapping
import numpy
from numpy import pi

View file

@ -1,4 +1,5 @@
from typing import Sequence, Callable, Any
from typing import Any
from collections.abc import Sequence, Callable
from pprint import pformat
import numpy

View file

@ -1,7 +1,7 @@
"""
Manual wire routing tutorial: Pather and BasicTool
"""
from typing import Callable
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 BasicTool, PathTool

View file

@ -2,7 +2,7 @@
Routines for creating normalized 2D lattices and common photonic crystal
cavity designs.
"""
from typing import Sequence
from collection.abc import Sequence
import numpy
from numpy.typing import ArrayLike, NDArray

View file

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