Skip to content

Commit

Permalink
Constrain ValidationResult.graph type to pyshacl.validate(...)[1]
Browse files Browse the repository at this point in the history
… type

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist committed Aug 21, 2023
1 parent ae5f077 commit 97d7fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions case_utils/case_validate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import os
import sys
import warnings
from typing import Any, Dict, List, Optional, Set, Tuple, Union
from typing import Dict, List, Optional, Set, Tuple, Union

import pyshacl # type: ignore
import rdflib
Expand Down Expand Up @@ -69,7 +69,7 @@ class ValidationResult:
def __init__(
self,
conforms: bool,
graph: Any,
graph: Union[Exception, bytes, str, rdflib.Graph],
text: str,
undefined_concepts: Set[rdflib.URIRef],
) -> None:
Expand Down

0 comments on commit 97d7fbb

Please sign in to comment.