Skip to content

Commit

Permalink
Merge pull request #288 from nnsnodnb/renovate/mypy-1.x-lockfile
Browse files Browse the repository at this point in the history
Update dependency mypy to v1.14.0
  • Loading branch information
nnsnodnb authored Dec 29, 2024
2 parents 3b52415 + e59db6a commit 1a17874
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 55 deletions.
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.

0 comments on commit 1a17874

Please sign in to comment.