references to Pattern should be forward references

This commit is contained in:
jan 2023-10-12 01:31:29 -07:00
parent 9d5177ce63
commit c5bd34c9d6

View File

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