
from attr import attrs

from ....typing import UserID


@attrs(auto_attribs=True, frozen=True, slots=True)
class User:
    id: UserID
    screen_name: str
    suspended: bool
    deleted: bool
    avatar_url: str
    is_orga: bool


from typing import Optional

from attr import attrs

from ....typing import UserID


@attrs(auto_attribs=True, frozen=True, slots=True)
class User:
    id: UserID
    screen_name: str
    suspended: bool
    deleted: bool
    avatar_url: Optional[str]
    is_orga: bool

Fix type hint for avatar URL in user DTO
Fix type hint for avatar URL in user DTO

+ 
+ from typing import Optional
  
  from attr import attrs
  
  from ....typing import UserID
  
  
  @attrs(auto_attribs=True, frozen=True, slots=True)
  class User:
      id: UserID
      screen_name: str
      suspended: bool
      deleted: bool
-     avatar_url: str
+     avatar_url: Optional[str]
      is_orga: bool
  
Fix type hint for avatar URL in user DTO
## Code Before:

from attr import attrs

from ....typing import UserID


@attrs(auto_attribs=True, frozen=True, slots=True)
class User:
    id: UserID
    screen_name: str
    suspended: bool
    deleted: bool
    avatar_url: str
    is_orga: bool

## Instruction:
Fix type hint for avatar URL in user DTO
## Code After:

from typing import Optional

from attr import attrs

from ....typing import UserID


@attrs(auto_attribs=True, frozen=True, slots=True)
class User:
    id: UserID
    screen_name: str
    suspended: bool
    deleted: bool
    avatar_url: Optional[str]
    is_orga: bool
