Fix dialyzer errors
This commit is contained in:
parent
c3556bf79e
commit
695a54159c
2 changed files with 8 additions and 4 deletions
|
@ -265,7 +265,8 @@ defmodule RDF do
|
|||
defdelegate statement(tuple, property_map \\ nil), to: Statement, as: :new
|
||||
|
||||
defdelegate coerce_subject(subject, property_map \\ nil), to: Statement
|
||||
defdelegate coerce_predicate(predicate, property_map \\ nil), to: Statement
|
||||
defdelegate coerce_predicate(predicate), to: Statement
|
||||
defdelegate coerce_predicate(predicate, property_map), to: Statement
|
||||
defdelegate coerce_object(object, property_map \\ nil), to: Statement
|
||||
defdelegate coerce_graph_name(graph_name), to: Statement
|
||||
else
|
||||
|
@ -282,7 +283,8 @@ defmodule RDF do
|
|||
defdelegate statement(tuple, property_map \\ nil), to: Statement, as: :new
|
||||
|
||||
defdelegate coerce_subject(subject), to: Statement
|
||||
defdelegate coerce_predicate(predicate, property_map \\ nil), to: Statement
|
||||
defdelegate coerce_predicate(predicate), to: Statement
|
||||
defdelegate coerce_predicate(predicate, property_map), to: Statement
|
||||
defdelegate coerce_object(object), to: Statement
|
||||
defdelegate coerce_graph_name(graph_name), to: Statement
|
||||
end
|
||||
|
|
|
@ -23,6 +23,8 @@ defmodule RDF.Star.Statement do
|
|||
{coercible_subject(), coercible_predicate(), coercible_object(), coercible_graph_name()}
|
||||
| {coercible_subject(), coercible_predicate(), coercible_object()}
|
||||
|
||||
@type term_mapping :: RDF.Statement.term_mapping()
|
||||
|
||||
@doc """
|
||||
Creates a `RDF.Star.Triple` or `RDF.Star.Quad` with proper RDF values.
|
||||
|
||||
|
@ -71,8 +73,8 @@ defmodule RDF.Star.Statement do
|
|||
def coerce_subject({_, _, _} = triple, property_map), do: Triple.new(triple, property_map)
|
||||
def coerce_subject(subject, _), do: RDF.Statement.coerce_subject(subject)
|
||||
|
||||
defdelegate coerce_predicate(coercible_predicate), to: RDF.Statement
|
||||
defdelegate coerce_predicate(term, context), to: RDF.Statement
|
||||
defdelegate coerce_predicate(predicate), to: RDF.Statement
|
||||
defdelegate coerce_predicate(predicate, property_map), to: RDF.Statement
|
||||
|
||||
@doc false
|
||||
@spec coerce_object(coercible_object, PropertyMap.t() | nil) :: object
|
||||
|
|
Loading…
Reference in a new issue