From a3c4442aeb9ccbfc0709a3b9b51b9b152aa5c598 Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Tue, 14 May 2024 10:07:24 -0400 Subject: [PATCH] fix some dialyzer errors i made --- lib/stops/repo/behaviour.ex | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/stops/repo/behaviour.ex b/lib/stops/repo/behaviour.ex index 711f13809a..c0cc6bb936 100644 --- a/lib/stops/repo/behaviour.ex +++ b/lib/stops/repo/behaviour.ex @@ -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 @@ -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