fix wrong var name

This commit is contained in:
jan 2022-02-28 23:38:34 -08:00
parent 210f5c21bc
commit 36f6edac21

View File

@ -243,7 +243,7 @@ class LibDeviceLibrary(DeviceLibrary):
# NOTE that this means the `Device` may be cached without the `Pattern` being in # NOTE that this means the `Device` may be cached without the `Pattern` being in
# the `underlying` cache yet! # the `underlying` cache yet!
self.underlying.set_value(name, '__DeviceLibrary', lambda: self[key].pattern) self.underlying.set_value(key, '__DeviceLibrary', lambda: self[key].pattern)
def __delitem__(self, key: str) -> None: def __delitem__(self, key: str) -> None:
DeviceLibrary.__delitem__(self, key) DeviceLibrary.__delitem__(self, key)