pass along library for bounds

This commit is contained in:
Jan Petykiewicz 2023-02-08 08:46:24 -08:00 committed by jan
parent f834aaee47
commit 4ab718d578

View File

@ -200,7 +200,7 @@ class Ref(
return None return None
if library is not None and self.target not in library: if library is not None and self.target not in library:
raise PatternError(f'get_bounds() called on dangling reference to "{self.target}"') raise PatternError(f'get_bounds() called on dangling reference to "{self.target}"')
return self.as_pattern(pattern=pattern, library=library).get_bounds() return self.as_pattern(pattern=pattern, library=library).get_bounds(library)
def __repr__(self) -> str: def __repr__(self) -> str:
name = f'"{self.target}"' if self.target is not None else None name = f'"{self.target}"' if self.target is not None else None