mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
fix some linting issues for failing PR
This commit is contained in:
parent
98d2a3b3ec
commit
e120a0f7ae
3 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue