
from dataclasses import dataclass

from ....typing import BrandID


@dataclass(frozen=True)
class Brand:
    id: BrandID
    title: str
    image_filename: str
    image_url_path: str


@dataclass(frozen=True)
class BrandSetting:
    brand_id: BrandID
    name: str
    value: str


from dataclasses import dataclass
from typing import Optional

from ....typing import BrandID


@dataclass(frozen=True)
class Brand:
    id: BrandID
    title: str
    image_filename: Optional[str]
    image_url_path: Optional[str]


@dataclass(frozen=True)
class BrandSetting:
    brand_id: BrandID
    name: str
    value: str

Fix type hints of brand DTO image fields
Fix type hints of brand DTO image fields

  
  from dataclasses import dataclass
+ from typing import Optional
  
  from ....typing import BrandID
  
  
  @dataclass(frozen=True)
  class Brand:
      id: BrandID
      title: str
-     image_filename: str
+     image_filename: Optional[str]
-     image_url_path: str
+     image_url_path: Optional[str]
  
  
  @dataclass(frozen=True)
  class BrandSetting:
      brand_id: BrandID
      name: str
      value: str
  
Fix type hints of brand DTO image fields
## Code Before:

from dataclasses import dataclass

from ....typing import BrandID


@dataclass(frozen=True)
class Brand:
    id: BrandID
    title: str
    image_filename: str
    image_url_path: str


@dataclass(frozen=True)
class BrandSetting:
    brand_id: BrandID
    name: str
    value: str

## Instruction:
Fix type hints of brand DTO image fields
## Code After:

from dataclasses import dataclass
from typing import Optional

from ....typing import BrandID


@dataclass(frozen=True)
class Brand:
    id: BrandID
    title: str
    image_filename: Optional[str]
    image_url_path: Optional[str]


@dataclass(frozen=True)
class BrandSetting:
    brand_id: BrandID
    name: str
    value: str
