From ea1a882c4e4e96a5ec0f54248f009f4f83484159 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 8 Feb 2023 08:46:24 -0800 Subject: [PATCH] pass along library for bounds --- masque/ref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/ref.py b/masque/ref.py index 3de174b..37cd696 100644 --- a/masque/ref.py +++ b/masque/ref.py @@ -200,7 +200,7 @@ class Ref( return None if library is not None and self.target not in library: 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: name = f'"{self.target}"' if self.target is not None else None