Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed May 12, 2024
1 parent a9a3b12 commit 663912a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions mipac/models/announcement.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import TYPE_CHECKING, Any

from mipac.types.announcement import (
AnnoucementDisplay,
AnnouncementDisplay,
AnnoucementIcon,
IAnnouncement,
IAnnouncementDetailed,
Expand Down Expand Up @@ -91,7 +91,7 @@ def icon(self) -> AnnoucementIcon:
return self.__announcement["icon"]

@property
def display(self) -> AnnoucementDisplay:
def display(self) -> AnnouncementDisplay:
return self.__announcement["display"]

@property
Expand Down Expand Up @@ -145,14 +145,14 @@ def updated_at(self) -> datetime | None:
else None
)

@property
def title(self) -> str:
return self.__raw_announcement["title"]

@property
def text(self) -> str:
return self.__raw_announcement["text"]

@property
def title(self) -> str:
return self.__raw_announcement["title"]

@property
def image_url(self) -> str | None:
return self.__raw_announcement["image_url"]
Expand All @@ -162,7 +162,7 @@ def icon(self) -> AnnoucementIcon:
return self.__raw_announcement["icon"]

@property
def display(self) -> AnnoucementDisplay:
def display(self) -> AnnouncementDisplay:
return self.__raw_announcement["display"]

@property
Expand Down
6 changes: 3 additions & 3 deletions mipac/types/announcement.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Literal, NotRequired, TypedDict

AnnoucementIcon = Literal["info", "wanirng", "error", "success"]
AnnoucementDisplay = Literal["dialog", "normal", "banner"]
AnnouncementDisplay = Literal["dialog", "normal", "banner"]


class IAnnouncement(TypedDict):
Expand All @@ -12,7 +12,7 @@ class IAnnouncement(TypedDict):
title: str
image_url: str | None
icon: AnnoucementIcon
display: AnnoucementDisplay
display: AnnouncementDisplay
need_confirmation_to_read: bool
silence: bool
for_you: bool
Expand All @@ -29,7 +29,7 @@ class IAnnouncementDetailed(TypedDict):
title: str
image_url: str | None
icon: AnnoucementIcon
display: AnnoucementDisplay
display: AnnouncementDisplay
need_confirmation_to_read: bool
silence: bool

Expand Down

0 comments on commit 663912a

Please sign in to comment.