
from attr import attrib, attrs

from ....services.seating.models.seat import Seat
from ....services.user.models.user import User


@attrs(slots=True)  # Not yet frozen b/c models are not immutable.
class Attendee:
    user = attrib(type=User)
    seat = attrib(type=Seat)
    checked_in = attrib(type=bool)


from dataclasses import dataclass

from ....services.seating.models.seat import Seat
from ....services.user.models.user import User


@dataclass  # Not yet frozen b/c models are not immutable.
class Attendee:
    user: User
    seat: Seat
    checked_in: bool

Use `dataclass` instead of `attr` for attendance model
Use `dataclass` instead of `attr` for attendance model

  
- from attr import attrib, attrs
+ from dataclasses import dataclass
  
  from ....services.seating.models.seat import Seat
  from ....services.user.models.user import User
  
  
- @attrs(slots=True)  # Not yet frozen b/c models are not immutable.
+ @dataclass  # Not yet frozen b/c models are not immutable.
  class Attendee:
-     user = attrib(type=User)
-     seat = attrib(type=Seat)
-     checked_in = attrib(type=bool)
+     user: User
+     seat: Seat
+     checked_in: bool
  
Use `dataclass` instead of `attr` for attendance model
## Code Before:

from attr import attrib, attrs

from ....services.seating.models.seat import Seat
from ....services.user.models.user import User


@attrs(slots=True)  # Not yet frozen b/c models are not immutable.
class Attendee:
    user = attrib(type=User)
    seat = attrib(type=Seat)
    checked_in = attrib(type=bool)

## Instruction:
Use `dataclass` instead of `attr` for attendance model
## Code After:

from dataclasses import dataclass

from ....services.seating.models.seat import Seat
from ....services.user.models.user import User


@dataclass  # Not yet frozen b/c models are not immutable.
class Attendee:
    user: User
    seat: Seat
    checked_in: bool
