From ac33aed748345a5005c223476e81c92ac4ace237 Mon Sep 17 00:00:00 2001 From: Knut Nergaard Date: Wed, 4 Dec 2024 16:42:15 +0100 Subject: [PATCH] Revert to v1. --- Lib/fontParts/base/lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontParts/base/lib.py b/Lib/fontParts/base/lib.py index 544b3299..6329bfb4 100644 --- a/Lib/fontParts/base/lib.py +++ b/Lib/fontParts/base/lib.py @@ -310,7 +310,7 @@ def clear(self) -> None: """ super(BaseLib, self).clear() - def get(self, key: str, default: Optional[LibValueType] = None) -> Optional[LibValueType]: + def get(self, key: str, default: Optional[LibValueType] = None) -> LibValueType: """Get the value for the given key in the lib. If the given `key` is not found, The specified `default` will be returned. @@ -386,7 +386,7 @@ def values(self) -> BaseValues[LibValueType]: """ return super(BaseLib, self).values() - def pop(self, key: str, default: Optional[LibValueType] = None) -> Optional[LibValueType]: + def pop(self, key: str, default: Optional[LibValueType] = None) -> LibValueType: """Remove the specified key and return its associated value. If the `key` does not exist, the `default` value is returned.