From 235d8a4a2ced0e99377799cc6344d46cdc148fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Juri=C4=87?= Date: Wed, 13 Mar 2024 17:20:14 +0100 Subject: [PATCH] Fix typespecs --- lib/boundary/mix/classifier.ex | 3 ++- lib/boundary/mix/compiler_state.ex | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/boundary/mix/classifier.ex b/lib/boundary/mix/classifier.ex index 8b4f2a0..671c0ba 100644 --- a/lib/boundary/mix/classifier.ex +++ b/lib/boundary/mix/classifier.ex @@ -23,7 +23,8 @@ defmodule Boundary.Mix.Classifier do %{classifier | boundaries: boundaries, modules: modules} end - @spec classify(Boundary.classifier(), Application.app(), [module], [Boundary.t()]) :: Boundary.classifier() + @spec classify(Boundary.classifier(), Application.app(), Enumerable.t(module), [Boundary.t()]) :: + Boundary.classifier() def classify(classifier, app, modules, boundaries) do trie = build_trie(boundaries) diff --git a/lib/boundary/mix/compiler_state.ex b/lib/boundary/mix/compiler_state.ex index 37b2bd4..7f2dbdf 100644 --- a/lib/boundary/mix/compiler_state.ex +++ b/lib/boundary/mix/compiler_state.ex @@ -104,7 +104,7 @@ defmodule Boundary.Mix.CompilerState do end end - @spec encountered_modules(Application.app()) :: [module] + @spec encountered_modules(Application.app()) :: Enumerable.t(module) def encountered_modules(app), do: ets_keys(modules_table(app)) defp module_metas(app) do