diff --git a/docs/intro_to_graphs.rst b/docs/intro_to_graphs.rst index 4227634a5..c061a3c7b 100644 --- a/docs/intro_to_graphs.rst +++ b/docs/intro_to_graphs.rst @@ -105,7 +105,7 @@ node, not a generator: # get any name of bob name = g.value(bob, FOAF.name) # get the one person that knows bob and raise an exception if more are found - mbox = g.value(predicate = FOAF.name, object=bob, any=False) + person = g.value(predicate=FOAF.knows, object=bob, any=False) :class:`~rdflib.graph.Graph` methods for accessing triples diff --git a/pyproject.toml b/pyproject.toml index 23c51b12c..0d7d4c8c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,6 +115,9 @@ pep8-naming = ["-N815"] pep8-naming = ["-N802"] [tool.flakeheaven.exceptions."rdflib/plugins/parsers/trix.py"] pep8-naming = ["-N802"] +[tool.flakeheaven.exceptions."docs/*.rst"] +pyflakes = ["-F821"] + [tool.black] required-version = "23.3.0"