Skip to content

Commit

Permalink
fix some dialyzer errors i made
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed May 14, 2024
1 parent c7c531a commit a3c4442
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/stops/repo/behaviour.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Stops.Repo.Behaviour do
"""
alias Routes.Route
alias Schedules.Trip
alias Stops.Stop
alias Stops.{Repo, Stop}

@callback old_id_to_gtfs_id(Stop.id_t()) :: Stop.id_t() | nil

Expand All @@ -15,17 +15,17 @@ defmodule Stops.Repo.Behaviour do

@callback get_parent(Stop.t() | Stop.id_t() | nil) :: Stop.t() | nil

@callback by_route(Route.id_t(), 0 | 1) :: Stop.stops_response()
@callback by_route(Route.id_t(), 0 | 1, Keyword.t()) :: Stop.stops_response()
@callback by_route(Route.id_t(), 0 | 1) :: Repo.stops_response()
@callback by_route(Route.id_t(), 0 | 1, Keyword.t()) :: Repo.stops_response()

@callback by_routes([Route.id_t()], 0 | 1) :: Stop.stops_response()
@callback by_routes([Route.id_t()], 0 | 1, Keyword.t()) :: Stop.stops_response()
@callback by_routes([Route.id_t()], 0 | 1) :: Repo.stops_response()
@callback by_routes([Route.id_t()], 0 | 1, Keyword.t()) :: Repo.stops_response()

@callback by_route_type(Route.type_int()) :: Stop.stops_response()
@callback by_route_type(Route.type_int(), Keyword.t()) :: Stop.stops_response()
@callback by_route_type(Route.type_int()) :: Repo.stops_response()
@callback by_route_type(Route.type_int(), Keyword.t()) :: Repo.stops_response()

@callback by_trip(Trip.id_t()) :: Stop.stops_response()
@callback by_trip(Trip.id_t()) :: Repo.stops_response()

@callback stop_features(Stop.t()) :: [Stop.stop_feature()]
@callback stop_features(Stop.t(), Keyword.t()) :: [Stop.stop_feature()]
@callback stop_features(Stop.t()) :: [Repo.stop_feature()]
@callback stop_features(Stop.t(), Keyword.t()) :: [Repo.stop_feature()]
end

0 comments on commit a3c4442

Please sign in to comment.