This commit is contained in:
jan 2023-04-11 11:44:53 -07:00
parent fa7b94a4c0
commit 6ec4823244

View File

@ -891,6 +891,8 @@ class LazyLibrary(ILibrary):
""" """
This class is usually used to create a library of Patterns by mapping names to 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. 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']] mapping: dict[str, Callable[[], 'Pattern']]
cache: dict[str, 'Pattern'] cache: dict[str, 'Pattern']