Skip to content

Commit 97d7fbb

Browse files
committed
Constrain ValidationResult.graph type to pyshacl.validate(...)[1] type
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent ae5f077 commit 97d7fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

case_utils/case_validate/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import os
3838
import sys
3939
import warnings
40-
from typing import Any, Dict, List, Optional, Set, Tuple, Union
40+
from typing import Dict, List, Optional, Set, Tuple, Union
4141

4242
import pyshacl # type: ignore
4343
import rdflib
@@ -69,7 +69,7 @@ class ValidationResult:
6969
def __init__(
7070
self,
7171
conforms: bool,
72-
graph: Any,
72+
graph: Union[Exception, bytes, str, rdflib.Graph],
7373
text: str,
7474
undefined_concepts: Set[rdflib.URIRef],
7575
) -> None:

0 commit comments

Comments
 (0)