Fix lint
This commit is contained in:
@ -86,7 +86,7 @@ class LiteralField(Field[rdflib.Literal]):
|
||||
if value is None:
|
||||
if self.default is None:
|
||||
raise ValueError(f"{self.id} value is unexpectedly None")
|
||||
return sort_key(self.default)
|
||||
return self.sort_key(self.default)
|
||||
return value
|
||||
|
||||
def sparql(
|
||||
|
@ -75,7 +75,7 @@ def test_default_value() -> None:
|
||||
"display_name",
|
||||
{Language("en"): "Name"},
|
||||
rdflib.URIRef("http://example.org/display-name"),
|
||||
default=rdflib.Literal("Anonymous CPU")
|
||||
default=rdflib.Literal("Anonymous CPU"),
|
||||
)
|
||||
table = Table(
|
||||
fields=[name_field],
|
||||
@ -122,4 +122,3 @@ def test_field_id_clash() -> None:
|
||||
fields=[name_field, display_name_field],
|
||||
constraints="",
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user