Skip to content

Commit

Permalink
fix: typing + imports from cherry pick
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondchuc committed Jan 15, 2025
1 parent d51a1ec commit 3102c46
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions rdflib/extras/shacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@

from __future__ import annotations

from typing import Optional, Union
from typing import TYPE_CHECKING, Optional, Union

from rdflib import BNode, Graph, Literal, URIRef, paths
from rdflib import BNode, Graph, Literal, Node, URIRef, paths
from rdflib.collection import Collection
from rdflib.namespace import RDF, SH
from rdflib.paths import Path

if TYPE_CHECKING:
from rdflib.graph import _ObjectType
from rdflib.term import IdentifiedNode


Expand Down
1 change: 1 addition & 0 deletions rdflib/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
Node,
RDFLibGenid,
URIRef,
Variable,
)

if TYPE_CHECKING:
Expand Down
2 changes: 0 additions & 2 deletions rdflib/plugins/serializers/longturtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

from __future__ import annotations

from typing import IO, Any, Optional

from rdflib.compare import to_canonical_graph
from rdflib.exceptions import Error
from rdflib.graph import Graph
Expand Down
1 change: 0 additions & 1 deletion rdflib/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
Generator,
Iterable,
Iterator,
List,
Mapping,
Optional,
Tuple,
Expand Down
8 changes: 4 additions & 4 deletions test_reports/rdflib_w3c_sparql10-HEAD.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@
earl:assertedBy <https://github.com/RDFLib/rdflib> ;
earl:mode earl:automatic ;
earl:result [ a earl:TestResult ;
earl:outcome earl:failed ] ;
earl:outcome earl:passed ] ;
earl:subject <https://github.com/RDFLib/rdflib> ;
earl:test <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/manifest#syntax-bnodes-03> .

Expand Down Expand Up @@ -1859,7 +1859,7 @@
earl:assertedBy <https://github.com/RDFLib/rdflib> ;
earl:mode earl:automatic ;
earl:result [ a earl:TestResult ;
earl:outcome earl:failed ] ;
earl:outcome earl:passed ] ;
earl:subject <https://github.com/RDFLib/rdflib> ;
earl:test <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/manifest#syntax-forms-01> .

Expand Down Expand Up @@ -1907,7 +1907,7 @@
earl:assertedBy <https://github.com/RDFLib/rdflib> ;
earl:mode earl:automatic ;
earl:result [ a earl:TestResult ;
earl:outcome earl:failed ] ;
earl:outcome earl:passed ] ;
earl:subject <https://github.com/RDFLib/rdflib> ;
earl:test <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/manifest#syntax-lists-01> .

Expand Down Expand Up @@ -2787,7 +2787,7 @@
earl:assertedBy <https://github.com/RDFLib/rdflib> ;
earl:mode earl:automatic ;
earl:result [ a earl:TestResult ;
earl:outcome earl:failed ] ;
earl:outcome earl:passed ] ;
earl:subject <https://github.com/RDFLib/rdflib> ;
earl:test <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/manifest#syntax-lists-04> .

Expand Down

0 comments on commit 3102c46

Please sign in to comment.