def METHOD_NAME(
    cls,
    state: ConnectionState,
    *,
    name: str,
    animated: bool = False,
    id: Optional[int] = None,
) -> Self:
    self = cls(name=name, animated=animated, id=id)
    self._state = state
    return self