Skip to content

PureAnnotation

Bases: AbstractAnnotation

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