The spec can be changed to be more specific in the return values:
```elixir
@spec ping(t) :: :pong | :pang
```