From f73480ccfe0e4861f55aa0bce1266702a1031a95 Mon Sep 17 00:00:00 2001 From: Nik Sidnev Date: Mon, 9 Oct 2023 20:17:03 -0400 Subject: [PATCH] apply formatter --- lib/edgedb/edgeql/generator.ex | 7 ++++++- lib/edgedb/error.ex | 6 +++++- lib/edgedb/query.ex | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/edgedb/edgeql/generator.ex b/lib/edgedb/edgeql/generator.ex index 7d53677a..c0bb839a 100644 --- a/lib/edgedb/edgeql/generator.ex +++ b/lib/edgedb/edgeql/generator.ex @@ -383,7 +383,12 @@ defmodule EdgeDB.EdgeQL.Generator do defp codec_to_shape(%Codecs.Enum{name: type_name, members: members}, _codec_storage) do full_type_name = full_name_to_typespec(type_name) typedoc = "scalar type #{type_name} extending enum<#{Enum.join(members, ", ")}>" - register_typespec(full_type_name, {typedoc, ["String.t()" | Enum.map(members, &":#{inspect(&1)}")]}) + + register_typespec( + full_type_name, + {typedoc, ["String.t()" | Enum.map(members, &":#{inspect(&1)}")]} + ) + %{type: :builtin, typespec: full_type_name} end diff --git a/lib/edgedb/error.ex b/lib/edgedb/error.ex index ad464ef1..0ef5640b 100644 --- a/lib/edgedb/error.ex +++ b/lib/edgedb/error.ex @@ -249,7 +249,11 @@ defmodule EdgeDB.Error do "#{exception.name}: #{exception.message}" end - defp generate_render_config(%__MODULE__{query: %EdgeDB.Query{}} = exception, true, color_errors?) do + defp generate_render_config( + %__MODULE__{query: %EdgeDB.Query{}} = exception, + true, + color_errors? + ) do position_start = case Integer.parse(exception.attributes[:character_start] || "") do {position_start, ""} -> diff --git a/lib/edgedb/query.ex b/lib/edgedb/query.ex index a2091139..ec8884b6 100644 --- a/lib/edgedb/query.ex +++ b/lib/edgedb/query.ex @@ -24,7 +24,7 @@ defmodule EdgeDB.Query do codec_storage: nil, cached: false, params: [], - __file__: nil, + __file__: nil ] @type t() :: %__MODULE__{