From eb11f31960ab1b49da3be066e307e48eca5b0b09 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 26 Oct 2020 19:45:46 -0700 Subject: [PATCH] improve type hints for Library --- masque/library/library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/library/library.py b/masque/library/library.py index 694360f..91fd6a8 100644 --- a/masque/library/library.py +++ b/masque/library/library.py @@ -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.