Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Dec 4, 2024
1 parent 505ddb2 commit 4088e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/gcp/test/test_scc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@


class DefaultDict(dict): # type: ignore
def __init__(self, default_value: Any, *args: Any, **kwargs: Any):
def __init__(self, default_value: Any, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self.default_value = default_value

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

0 comments on commit 4088e05

Please sign in to comment.