Skip to content

ExpertAnnotation

Bases: AbstractAnnotation

Source code in library_analyzer/processing/annotations/model/_annotations.py
@dataclass
class ExpertAnnotation(AbstractAnnotation):
    @staticmethod
    def from_json(json: Any) -> ExpertAnnotation:
        annotation = AbstractAnnotation.from_json(json)
        return ExpertAnnotation(
            annotation.target,
            annotation.authors,
            annotation.reviewers,
            annotation.comment,
            annotation.reviewResult,
        )

from_json(json) staticmethod ΒΆ

Source code in library_analyzer/processing/annotations/model/_annotations.py
@staticmethod
def from_json(json: Any) -> ExpertAnnotation:
    annotation = AbstractAnnotation.from_json(json)
    return ExpertAnnotation(
        annotation.target,
        annotation.authors,
        annotation.reviewers,
        annotation.comment,
        annotation.reviewResult,
    )