references to Pattern should be forward references

This commit is contained in:
jan 2023-10-12 01:31:29 -07:00
parent 8d2d1ffd50
commit 772e42ebf1

View File

@ -924,7 +924,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
# @overload # @overload
# def place( # def place(
# self, # self,
# other: Pattern, # other: 'Pattern',
# *, # *,
# offset: ArrayLike, # offset: ArrayLike,
# rotation: float, # rotation: float,
@ -953,7 +953,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
def place( def place(
self, self,
other: Abstract | Pattern, other: 'Abstract | Pattern',
*, *,
offset: ArrayLike = (0, 0), offset: ArrayLike = (0, 0),
rotation: float = 0, rotation: float = 0,
@ -1059,7 +1059,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
# @overload # @overload
# def plug( # def plug(
# self, # self,
# other: Pattern, # other: 'Pattern',
# map_in: dict[str, str], # map_in: dict[str, str],
# map_out: dict[str, str | None] | None, # map_out: dict[str, str | None] | None,
# *, # *,
@ -1072,7 +1072,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
def plug( def plug(
self, self,
other: Abstract | Pattern, other: 'Abstract | Pattern',
map_in: dict[str, str], map_in: dict[str, str],
map_out: dict[str, str | None] | None = None, map_out: dict[str, str | None] | None = None,
*, *,