improve type hints for Library
This commit is contained in:
parent
f364970403
commit
eb11f31960
@ -180,7 +180,7 @@ class Library:
|
||||
else:
|
||||
self.primary[key] = pg
|
||||
|
||||
def precache(self) -> 'Library':
|
||||
def precache(self: L) -> L:
|
||||
"""
|
||||
Force all patterns into the cache
|
||||
|
||||
@ -193,7 +193,7 @@ class Library:
|
||||
_ = self.get_secondary(*key2)
|
||||
return self
|
||||
|
||||
def add(self, other: 'Library') -> 'Library':
|
||||
def add(self: L, other: L) -> L:
|
||||
"""
|
||||
Add keys from another library into this one.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user