Skip to content

Commit

Permalink
settings: add default=None to Group.get (ArchipelagoMW#2178)
Browse files Browse the repository at this point in the history
This is regular dict behavior/emulation.
  • Loading branch information
black-sliver authored and FlySniper committed Nov 14, 2023
1 parent 7c77285 commit 16a1337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get_type_hints(cls) -> Dict[str, Any]:
cls._type_cache = typing.get_type_hints(cls, globalns=mod_dict, localns=cls.__dict__)
return cls._type_cache

def get(self, key: str, default: Any) -> Any:
def get(self, key: str, default: Any = None) -> Any:
if key in self:
return self[key]
return default
Expand Down

0 comments on commit 16a1337

Please sign in to comment.