Pipe-operator does not support forward references

This commit is contained in:
Jan Petykiewicz 2023-02-23 16:23:06 -08:00 committed by jan
commit b4f36417fd
5 changed files with 21 additions and 21 deletions

View file

@ -46,7 +46,7 @@ class Ref(
def __init__(
self,
target: str | 'NamedPattern' | None,
target: 'str | NamedPattern | None',
*,
offset: ArrayLike = (0.0, 0.0),
rotation: float = 0.0,
@ -120,7 +120,7 @@ class Ref(
def as_pattern(
self,
*,
pattern: 'Pattern' | None = None,
pattern: 'Pattern | None' = None,
library: Mapping[str, 'Pattern'] | None = None,
) -> 'Pattern':
"""
@ -177,7 +177,7 @@ class Ref(
def get_bounds(
self,
*,
pattern: 'Pattern' | None = None,
pattern: 'Pattern | None' = None,
library: Mapping[str, 'Pattern'] | None = None,
) -> NDArray[numpy.float64] | None:
"""