Skip to content

PureAnnotation

Bases: AbstractAnnotation

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

from_dict(d) staticmethod

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