Skip to content

ExpertAnnotation

Bases: AbstractAnnotation

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

__init__(target, authors, reviewers, comment, reviewResult)

from_dict(d) staticmethod

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