Bases: AbstractAnnotation
Source code in library_analyzer/processing/annotations/model/_annotations.py
| @dataclass
class DescriptionAnnotation(AbstractAnnotation):
newDescription: str
@staticmethod
def from_json(json: Any) -> DescriptionAnnotation:
annotation = AbstractAnnotation.from_json(json)
return DescriptionAnnotation(
annotation.target,
annotation.authors,
annotation.reviewers,
annotation.comment,
annotation.reviewResult,
json["newDescription"],
)
|
newDescription: str
class-attribute
from_json(json)
staticmethod
Source code in library_analyzer/processing/annotations/model/_annotations.py
| @staticmethod
def from_json(json: Any) -> DescriptionAnnotation:
annotation = AbstractAnnotation.from_json(json)
return DescriptionAnnotation(
annotation.target,
annotation.authors,
annotation.reviewers,
annotation.comment,
annotation.reviewResult,
json["newDescription"],
)
|