From 6ffc5dc8afe6f194065920c31a5c4dbf12c2316b Mon Sep 17 00:00:00 2001 From: Chris Keele Date: Sun, 13 Oct 2024 18:38:34 -0500 Subject: [PATCH] Use keyword() in typespecs --- lib/kino/mermaid.ex | 2 +- lib/kino/shorts.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kino/mermaid.ex b/lib/kino/mermaid.ex index fd78ca9..8348c5d 100644 --- a/lib/kino/mermaid.ex +++ b/lib/kino/mermaid.ex @@ -43,7 +43,7 @@ defmodule Kino.Mermaid do * `:filename` - The name of the file to be downloaded. """ - @spec new(binary(), Keyword.t()) :: t() + @spec new(binary(), keyword()) :: t() def new(diagram, opts \\ []) do opts = Keyword.validate!(opts, caption: false, download: true) diff --git a/lib/kino/shorts.ex b/lib/kino/shorts.ex index a6a017e..f73bb98 100644 --- a/lib/kino/shorts.ex +++ b/lib/kino/shorts.ex @@ -178,7 +178,7 @@ defmodule Kino.Shorts do C-->D; """) ''' - @spec mermaid(String.t(), Keyword.t()) :: Kino.Mermaid.t() + @spec mermaid(String.t(), keyword()) :: Kino.Mermaid.t() def mermaid(diagram, options \\ []), do: Kino.Mermaid.new(diagram, options) @doc """