Skip to content

Commit add3469

Browse files
Rohooliomegan-bower4
authored andcommitted
feature/PI-870-sonarcloud_stuff optional defaults wtf
1 parent 4d40bb6 commit add3469

File tree

1 file changed

+3
-3
lines changed
  • src/layers/domain/core/cpm_product

1 file changed

+3
-3
lines changed

src/layers/domain/core/cpm_product/v1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from datetime import datetime
22
from typing import Optional
33

4-
from attr import dataclass
4+
from attr import dataclass, field
55
from domain.core.aggregate_root import UPDATED_ON, AggregateRoot, event
66
from domain.core.cpm_system_id import ProductId
77
from domain.core.enum import Status
@@ -36,8 +36,8 @@ class CpmProductKeyAddedEvent(Event):
3636
ods_code: str
3737
status: Status
3838
created_on: str
39-
updated_on: Optional[str]
40-
deleted_on: Optional[str]
39+
updated_on: Optional[str] = field(default=None)
40+
deleted_on: Optional[str] = field(default=None)
4141
keys: list[dict]
4242

4343

0 commit comments

Comments
 (0)