improve type hints for Library
This commit is contained in:
parent
f364970403
commit
eb11f31960
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue