fix some type-related issues

This commit is contained in:
Jan Petykiewicz 2023-01-18 17:15:14 -08:00 committed by jan
commit f7a2edfe23
4 changed files with 7 additions and 6 deletions

View file

@ -684,7 +684,7 @@ class LazyLibrary(MutableLibrary):
def __repr__(self) -> str:
return '<LazyLibrary with keys ' + repr(list(self.dict.keys())) + '>'
def precache(self: L) -> L:
def precache(self: LL) -> LL:
"""
Force all patterns into the cache
@ -695,7 +695,7 @@ class LazyLibrary(MutableLibrary):
_ = self.dict.__getitem__(key)
return self
def clear_cache(self: L) -> L:
def clear_cache(self: LL) -> LL:
"""
Clear the cache of this library.
This is usually used before modifying or deleting cells, e.g. when merging