Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency mypy to v1.14.0 #288

Merged
merged 3 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kalyke/models/apns_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def make_headers(self) -> Dict[str, str]:


@dataclass(frozen=True)
class LiveActivityApnsConfig(ApnsConfig):
class LiveActivityApnsConfig(ApnsConfig): # type: ignore[override]
push_type: ApnsPushType = field(default=ApnsPushType.LIVEACTIVITY, init=False)

def __post_init__(self):
Expand All @@ -52,7 +52,7 @@ def __post_init__(self):


@dataclass(frozen=True)
class VoIPApnsConfig(ApnsConfig):
class VoIPApnsConfig(ApnsConfig): # type: ignore[override]
push_type: ApnsPushType = field(default=ApnsPushType.VOIP, init=False)

def __post_init__(self):
Expand Down
6 changes: 3 additions & 3 deletions kalyke/models/apns_priority.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@


class ApnsPriority(Enum):
IMMEDIATELY: int = 10
BASED_ON_POWER: int = 5
POWER_CONSIDERATIONS_OVER_ALL_OTHER_FACTORS: int = 1
IMMEDIATELY = 10
BASED_ON_POWER = 5
POWER_CONSIDERATIONS_OVER_ALL_OTHER_FACTORS = 1
16 changes: 8 additions & 8 deletions kalyke/models/apns_push_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@


class ApnsPushType(Enum):
ALERT: str = "alert"
BACKGROUND: str = "background"
LOCATION: str = "location"
VOIP: str = "voip"
COMPLICATION: str = "complication"
FILE_PROVIDER: str = "fileprovider"
MDM: str = "mdm"
LIVEACTIVITY: str = "liveactivity"
ALERT = "alert"
BACKGROUND = "background"
LOCATION = "location"
VOIP = "voip"
COMPLICATION = "complication"
FILE_PROVIDER = "fileprovider"
MDM = "mdm"
LIVEACTIVITY = "liveactivity"
8 changes: 4 additions & 4 deletions kalyke/models/interruption_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class InterruptionLevel(Enum):
PASSIVE: str = "passive"
ACTIVE: str = "active"
TIME_SENSITIVE: str = "time-sensitive"
CRITICAL: str = "critical"
PASSIVE = "passive"
ACTIVE = "active"
TIME_SENSITIVE = "time-sensitive"
CRITICAL = "critical"
6 changes: 3 additions & 3 deletions kalyke/models/live_activity_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@


class LiveActivityEvent(Enum):
START: str = "start"
UPDATE: str = "update"
END: str = "end"
START = "start"
UPDATE = "update"
END = "end"
70 changes: 35 additions & 35 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading