improve type hints for Library

lethe/HEAD
Jan Petykiewicz 4 years ago
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…
Cancel
Save