From c5bd34c9d6c60ee468aa8ba1ae39c04cf3fc1483 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 12 Oct 2023 01:31:29 -0700 Subject: [PATCH] references to Pattern should be forward references --- masque/pattern.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/masque/pattern.py b/masque/pattern.py index d5aca46..7bf637f 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -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, *,