From 53f29716dce599a67c6bd0e915484969bffe51a3 Mon Sep 17 00:00:00 2001 From: Eric Saxby Date: Thu, 27 Feb 2025 09:07:20 -0800 Subject: [PATCH] Fix write typespec to handle lists of strings --- lib/mudbrick/text_block.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mudbrick/text_block.ex b/lib/mudbrick/text_block.ex index cef670e..a5ea76d 100644 --- a/lib/mudbrick/text_block.ex +++ b/lib/mudbrick/text_block.ex @@ -27,11 +27,11 @@ defmodule Mudbrick.TextBlock do @type part_options :: [part_option()] @type write_tuple :: {String.t(), part_options()} + @type write_part :: String.t() | write_tuple() @type write :: - String.t() - | write_tuple() - | list(write_tuple()) + write_part() + | list(write_part()) @type t :: %__MODULE__{ align: alignment(),