Skip to content

Commit

Permalink
fix: make ruff checks pass
Browse files Browse the repository at this point in the history
ruff failed because of unused imports and an unused variable.
  • Loading branch information
lu-pl committed Oct 21, 2024
1 parent c126a6d commit ff99a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions r11data/kekaumenos/models.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""Pydantic models for Kekaumenos extraction."""

import json
from typing import Annotated, Union

from pydantic import AnyUrl, BaseModel, Field
from pydantic import BaseModel, Field
from rdflib import Namespace

rdf = Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
Expand Down
3 changes: 2 additions & 1 deletion r11data/kekaumenos/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def group_iterator(iterator: Iterator[dict], *, by: str) -> dict:
value = grouped[binding["object"]]
except KeyError:
grouped.update({binding["object"]: {}})
value = grouped[binding["object"]]

grouped[binding["object"]].update({binding["p"]: binding["o"]})
value.update({binding["p"]: binding["o"]})

return grouped

0 comments on commit ff99a10

Please sign in to comment.