Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Jul 25, 2024
1 parent 2c8a3f3 commit 1000c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions extruct/w3cmicrodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,8 @@ def _extract_property_value(self, node, items_seen, base_url, itemids, force=Fal
return node.get("content")

# https://schema.org/docs/actions.html#part-4
elif (
(itemprop := node.get("itemprop"))
and (itemprop.endswith("-input") or itemprop.endswith("-output"))
elif (itemprop := node.get("itemprop")) and (
itemprop.endswith("-input") or itemprop.endswith("-output")
):
result = {}
if "required" in node.attrib:
Expand Down
1 change: 0 additions & 1 deletion tests/test_microdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def _test_schemaorg(self, schema, indexes=None):
data = mde.extract(body)
self.assertEqual(data, expected)


def test_schemaorg_CreativeWork(self):
for i in [1]:
body = get_testdata("schema.org", "CreativeWork.{:03d}.html".format(i))
Expand Down

0 comments on commit 1000c83

Please sign in to comment.