Skip to content

CalledAfterAnnotation

Bases: AbstractAnnotation

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

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

calledAfterName: str class-attribute

from_json(json) staticmethod

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