Skip to content

Commit

Permalink
formatting and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonavic committed Jan 2, 2025
1 parent 676244c commit 673b510
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
meldingen-core:
image: amsterdam/meldingen-core
Expand Down
4 changes: 3 additions & 1 deletion meldingen_core/actions/melding.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABCMeta, abstractmethod
from datetime import datetime, timedelta
from typing import Any, Generic, TypeVar, override, Literal
from typing import Any, Generic, Literal, TypeVar, override

import structlog

Expand Down Expand Up @@ -67,6 +67,7 @@ class MeldingRetrieveAction(BaseRetrieveAction[T, T_co]):

class MeldingUpdateAction(BaseCRUDAction[T, T_co]):
"""Action that updates the melding and reclassifies it"""

_verify_token: TokenVerifier[T, T_co]
_classify: Classifier
_state_machine: BaseMeldingStateMachine[T]
Expand Down Expand Up @@ -103,6 +104,7 @@ async def __call__(self, pk: int, values: dict[str, Any], token: str) -> T:

class MeldingAddContactAction(BaseCRUDAction[T, T_co]):
"""Action that adds contact information to a melding."""

_verify_token: TokenVerifier[T, T_co]

def __init__(
Expand Down
6 changes: 3 additions & 3 deletions meldingen_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class Melding:

text: str
classification: Classification | None = None
attachments: list["Attachment"] = field(default_factory=list)
token: str | None = None
token_expires: datetime | None = None
attachments: list["Attachment"] = field(default_factory=list)
email: str | None
phone: str | None
email: str | None = None
phone: str | None = None


@dataclass
Expand Down

0 comments on commit 673b510

Please sign in to comment.