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