From 431c9bc5c2756a5689996fc449e2a88f829a67a7 Mon Sep 17 00:00:00 2001 From: bhavberi Date: Mon, 27 May 2024 15:10:53 +0000 Subject: [PATCH] Apply Linting & Formatting Fixes --- mtypes.py | 6 +++--- mutations.py | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mtypes.py b/mtypes.py index f7d93ef..3472ace 100644 --- a/mtypes.py +++ b/mtypes.py @@ -50,7 +50,7 @@ class Event_State_Status(StrEnum): @strawberry.type class Event_Status: - state: Event_State_Status = Event_State_Status.incomplete # type: ignore + state: Event_State_Status = Event_State_Status.incomplete # type: ignore # room: Event_Room_Status = Event_Room_Status.unapproved # budget: Event_Budget_Status = Event_Budget_Status.unapproved room: bool = False @@ -69,10 +69,10 @@ class Event_Status: # self.state: Event_State_Status = Event_State_Status.incomplete if state is None else state # self.room: Event_Room_Status = Event_Room_Status.unapproved if room is None else room # self.budget: Event_Budget_Status = Event_Budget_Status.unapproved if budget is None else budget - + def __init__( self, - state: Event_State_Status = Event_State_Status.incomplete, # type: ignore + state: Event_State_Status = Event_State_Status.incomplete, # type: ignore room: bool = False, budget: bool = False, cc_approver: str | None = None, diff --git a/mutations.py b/mutations.py index ed23eeb..40e8844 100644 --- a/mutations.py +++ b/mutations.py @@ -267,7 +267,6 @@ def progressEvent( "room": False, # or len(event_instance.location) == 0, "state": Event_State_Status.pending_cc.value, - "cc_approver": None, "slc_approver": None, "slo_approver": None, @@ -400,7 +399,10 @@ def progressEvent( student_count = "N/A" else: mail_location = ", ".join( - [getattr(Event_Full_Location, loc) for loc in updated_event_instance.location] + [ + getattr(Event_Full_Location, loc) + for loc in updated_event_instance.location + ] ) equipment, additional = "N/A", "N/A"