This commit is contained in:
jan 2023-04-11 11:44:53 -07:00
parent 2ed868ec25
commit 75821c4ff9

View File

@ -891,6 +891,8 @@ class LazyLibrary(ILibrary):
"""
This class is usually used to create a library of Patterns by mapping names to
functions which generate or load the relevant `Pattern` object as-needed.
TODO: lots of stuff causes recursive loads (e.g. data_to_ports?). What should you avoid?
"""
mapping: dict[str, Callable[[], 'Pattern']]
cache: dict[str, 'Pattern']