Skip to content

CompleteAnnotation

Bases: AbstractAnnotation

Source code in library_analyzer/processing/annotations/model/_annotations.py
class CompleteAnnotation(AbstractAnnotation):
    @staticmethod
    def from_json(json: Any) -> CompleteAnnotation:
        annotation = AbstractAnnotation.from_json(json)
        return CompleteAnnotation(
            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) -> CompleteAnnotation:
    annotation = AbstractAnnotation.from_json(json)
    return CompleteAnnotation(
        annotation.target,
        annotation.authors,
        annotation.reviewers,
        annotation.comment,
        annotation.reviewResult,
    )