From e60ddd5b5e1e485ddcc00f4c4ed0fb0ed2f8519f Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Sat, 7 Sep 2024 10:20:33 +0100 Subject: [PATCH] fix: set the defaults argument to None to fix dangerous-default-value lint --- src/rocker/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rocker/core.py b/src/rocker/core.py index e9a3c24..bf46abf 100644 --- a/src/rocker/core.py +++ b/src/rocker/core.py @@ -117,7 +117,9 @@ def check_args_for_activation(cls, cli_args): return True if cli_args.get(cls.get_name()) else False @staticmethod - def register_arguments(parser, defaults={}): + def register_arguments(parser, defaults:dict=None): + if defaults is None: + defaults={} raise NotImplementedError