feat: Semaine 8

This commit is contained in:
gauvainboiche
2026-05-11 09:25:19 +02:00
parent 606e43e53f
commit 3315cb2336
123 changed files with 5748 additions and 0 deletions
@@ -0,0 +1,15 @@
from dataclasses import dataclass, field
from typing import Optional
@dataclass
class Customer:
id: int
name: str
email: str
address: str
order_count: int
is_premium: Optional[bool] = field(default=None)
def __post_init__(self):
if self.is_premium is None:
self.is_premium = self.order_count > 10