Skip to content

MoveAnnotation

Bases: AbstractAnnotation

Source code in library_analyzer/processing/annotations/model/_annotations.py
@dataclass
class MoveAnnotation(AbstractAnnotation):
    destination: str

    @staticmethod
    def from_json(json: Any) -> MoveAnnotation:
        annotation = AbstractAnnotation.from_json(json)
        return MoveAnnotation(
            annotation.target,
            annotation.authors,
            annotation.reviewers,
            annotation.comment,
            annotation.reviewResult,
            json["destination"],
        )

destination: str class-attribute

from_json(json) staticmethod

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