diff --git a/src/scwidgets/check/_widget_check_registry.py b/src/scwidgets/check/_widget_check_registry.py index 582239a..ccdba22 100644 --- a/src/scwidgets/check/_widget_check_registry.py +++ b/src/scwidgets/check/_widget_check_registry.py @@ -250,9 +250,9 @@ def check_widget(self, widget: CheckableWidget) -> Union[ChecksResult, Exception def check_all_widgets( self, ) -> OrderedDict[CheckableWidget, Union[ChecksResult, Exception]]: - messages: OrderedDict[ - CheckableWidget, Union[ChecksResult, Exception] - ] = OrderedDict() + messages: OrderedDict[CheckableWidget, Union[ChecksResult, Exception]] = ( + OrderedDict() + ) for widget in self._checks.keys(): try: messages[widget] = self.check_widget(widget) diff --git a/src/scwidgets/exercise/_widget_code_exercise.py b/src/scwidgets/exercise/_widget_code_exercise.py index 79dd625..17283a0 100644 --- a/src/scwidgets/exercise/_widget_code_exercise.py +++ b/src/scwidgets/exercise/_widget_code_exercise.py @@ -445,9 +445,11 @@ def __init__( def answer(self) -> dict: return { "code": None if self._code is None else self._code.function_body, - "parameter_panel": None - if self._parameter_panel is None - else self._parameter_panel.parameters, + "parameter_panel": ( + None + if self._parameter_panel is None + else self._parameter_panel.parameters + ), } @answer.setter