From 804b6627802a1221b08d368a99df6d9895da55c9 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 12 Jan 2023 23:05:45 -0800 Subject: [PATCH] improve docs --- masque/library.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/masque/library.py b/masque/library.py index 598c6b3..e3a60f3 100644 --- a/masque/library.py +++ b/masque/library.py @@ -33,6 +33,7 @@ LL = TypeVar('LL', bound='LazyLibrary') class Library(Mapping[str, Pattern], metaclass=ABCMeta): + # inherited abstract functions #def __getitem__(self, key: str) -> 'Pattern': #def __iter__(self) -> Iterator[str]: #def __len__(self) -> int: @@ -203,7 +204,7 @@ class Library(Mapping[str, Pattern], metaclass=ABCMeta): quiet: If `True`, suppress log messages. Returns: - Unique name for this library. + Name, unique within this library. """ if sanitize: # Remove invalid characters @@ -252,6 +253,10 @@ class MutableLibrary(Library, metaclass=ABCMeta): @abstractmethod def __setitem__(self, key: str, value: VVV) -> None: pass + # inherited abstract functions + #def __getitem__(self, key: str) -> 'Pattern': + #def __iter__(self) -> Iterator[str]: + #def __len__(self) -> int: @abstractmethod def __delitem__(self, key: str) -> None: