From 21599d8022d13ed0f71e1f2e2b7af5a50e798ebd Mon Sep 17 00:00:00 2001 From: pnezis Date: Sun, 8 Mar 2026 11:08:40 +0200 Subject: [PATCH] Fix spec of `PartitionSupervisor.partitions/1` --- lib/elixir/lib/partition_supervisor.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/partition_supervisor.ex b/lib/elixir/lib/partition_supervisor.ex index 401936e31e0..08fbe431ff4 100644 --- a/lib/elixir/lib/partition_supervisor.ex +++ b/lib/elixir/lib/partition_supervisor.ex @@ -421,7 +421,7 @@ defmodule PartitionSupervisor do Returns the number of partitions for the partition supervisor. """ @doc since: "1.14.0" - @spec partitions(name()) :: pos_integer() + @spec partitions(name()) :: non_neg_integer() def partitions(name) do name |> table() |> partitions(name) end