fix some linting issues for failing PR (#1745)

This commit is contained in:
Jonathan Wren 2023-05-20 16:03:46 -07:00 committed by GitHub
parent 959e18ad91
commit 4cb5d1e436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -90,4 +90,4 @@ class MsgStyle(Enum):
@property
def box_title(self) -> MsgText:
return self.value.get("box_title", None)
return self.value.get("box_title")

View file

@ -21,7 +21,7 @@ def apply_overrides(args: "Namespace", base_config: dict) -> dict:
:return: Configuration to be used during runtime with the overrides applied
:rtype: dict
"""
overrides = vars(args).get("config_override", None)
overrides = vars(args).get("config_override")
if not overrides:
return base_config

View file

@ -157,7 +157,7 @@ def config_var_on_disk(config_on_disk, journal_name, it_should, some_yaml):
actual_slice = actual
if type(actual) is dict:
# `expected` objects formatted in yaml only compare one level deep
actual_slice = {key: actual.get(key, None) for key in expected.keys()}
actual_slice = {key: actual.get(key) for key in expected.keys()}
assert (expected == actual_slice) == it_should