Skip to content

Commit

Permalink
Revert to v1.
Browse files Browse the repository at this point in the history
  • Loading branch information
knutnergaard committed Dec 4, 2024
1 parent 3e45a6f commit ac33aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/fontParts/base/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ac33aed

Please sign in to comment.