Skip to content

Commit

Permalink
Update formatting to black 24
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Jun 28, 2024
1 parent f98d5a1 commit 12dd0eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/scwidgets/check/_widget_check_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions src/scwidgets/exercise/_widget_code_exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12dd0eb

Please sign in to comment.