From 75e4efe0d7de829991d8172b0c57798164be3c2c Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Thu, 5 May 2022 14:27:21 +0200 Subject: [PATCH] config.py: satisfy mypy on TypedDict access via runtime string --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 67ddf6e..97b36e2 100644 --- a/config.py +++ b/config.py @@ -144,9 +144,9 @@ def resolve_profile( # now init missing keys for key, value in PROFILE_DEFAULTS.items(): if key not in full.keys(): - full[key] = None # type: ignore[misc] + full[key] = None # type: ignore[literal-required] if type(value) == list: - full[key] = [] # type: ignore[misc] + full[key] = [] # type: ignore[literal-required] full['size_extra_mb'] = int(full['size_extra_mb'] or 0)