Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkcakeout committed May 30, 2024
1 parent 392cae1 commit 2ae445f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 0 additions & 3 deletions app/grandchallenge/workstation_configs/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from collections import OrderedDict
from typing import Optional, Dict

from crispy_forms.helper import FormHelper
from crispy_forms.layout import HTML, Layout, Submit
from django.forms import ModelForm
Expand Down
2 changes: 1 addition & 1 deletion app/grandchallenge/workstation_configs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
WorkstationConfigSerializer,
)

from .visual_field_ordering import GROUPS, DETAIL_FIELDS
from .visual_field_ordering import DETAIL_FIELDS, GROUPS


class WorkstationConfigViewSet(ReadOnlyModelViewSet):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from typing import List, Optional


class Group:
title: str
description: Optional[str]
names: List[str]
description: str | None
names: list[str]

def __init__(self, *, title, description=None):
self.title = title
Expand Down Expand Up @@ -78,7 +75,7 @@ def add_to_group(self, other):
]


def _construct_groups() -> List[Group]:
def _construct_groups() -> list[Group]:
current_group = Group(title="")

i = 0
Expand Down

0 comments on commit 2ae445f

Please sign in to comment.