Skip to content

Commit

Permalink
Use keyword() in typespecs
Browse files Browse the repository at this point in the history
  • Loading branch information
christhekeele committed Oct 13, 2024
1 parent eeab847 commit 6ffc5dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/kino/mermaid.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion lib/kino/shorts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit 6ffc5dc

Please sign in to comment.