references to Pattern should be forward references

dicty
jan 8 months ago
parent 9d5177ce63
commit c5bd34c9d6

@ -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,
*, *,

Loading…
Cancel
Save