Skip to content

Commit

Permalink
Fix pylance warning that Info is not a type, but a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Sep 14, 2024
1 parent d9139fc commit 608ca7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mutations/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
from mailing_templates import (
APPROVED_EVENT_BODY_FOR_CLUB,
CLUB_EVENT_SUBJECT,
DELETE_EVENT_SUBJECT,
DELETE_EVENT_BODY_FOR_CC,
DELETE_EVENT_BODY_FOR_CLUB,
DELETE_EVENT_SUBJECT,
PROGRESS_EVENT_BODY,
PROGRESS_EVENT_BODY_FOR_SLC,
PROGRESS_EVENT_BODY_FOR_SLO,
Expand All @@ -32,7 +32,6 @@
Event_State_Status,
timezone,
)

from otypes import EventType, Info, InputEditEventDetails, InputEventDetails
from utils import (
getClubNameEmail,
Expand Down
4 changes: 2 additions & 2 deletions otypes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from datetime import date, datetime
from functools import cached_property
from typing import Dict, List, Tuple
from typing import Dict, List, Tuple, TypeAlias

import strawberry
from pydantic import BaseModel
Expand Down Expand Up @@ -40,7 +40,7 @@ def cookies(self) -> Dict | None:


# custom info type
Info = _Info[Context, RootValueType]
Info: TypeAlias = _Info[Context, RootValueType]

# serialize PyObjectId as a scalar type
PyObjectIdType = strawberry.scalar(
Expand Down

0 comments on commit 608ca7e

Please sign in to comment.