From 5ec06cfb02665ea0b4b666b6517321989e800dc6 Mon Sep 17 00:00:00 2001 From: jack-mil <62065280+jack-mil@users.noreply.github.com> Date: Sun, 11 Aug 2024 18:53:12 -0400 Subject: [PATCH] chore: change args and options combining for clearity --- bing_rewards/options.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bing_rewards/options.py b/bing_rewards/options.py index 5095707..00b927a 100644 --- a/bing_rewards/options.py +++ b/bing_rewards/options.py @@ -44,7 +44,7 @@ @dataclasses.dataclass() class Config: - """Default settings file config and types.""" + """Default settings for file config and types.""" desktop_count: int = DESKTOP_COUNT mobile_count: int = MOBILE_COUNT @@ -205,5 +205,7 @@ def get_options() -> Namespace: """Combine the defaults, config file options, and command line arguments into one Namespace.""" file_config = read_config() args = parse_args() - args.__dict__ = vars(file_config) | {k: v for k, v in vars(args).items() if v is not None} + args.__dict__ = dataclasses.asdict(file_config) | { + k: v for k, v in vars(args).items() if v is not None + } return args